PostGIS Cookbook and over 2 million other books are available for Amazon Kindle . Learn more
  • RRP: £30.99
  • You Save: £0.93 (3%)
FREE Delivery in the UK.
In stock.
Dispatched from and sold by Amazon.
Gift-wrap available.
Postgis Cookbook has been added to your Basket
Trade in your item
Get a £12.75
Gift Card.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

Postgis Cookbook Paperback – 27 Jan 2014

See all 2 formats and editions Hide other formats and editions
Amazon Price New from Used from
Kindle Edition
"Please retry"
"Please retry"
£26.00 £38.33

Trade In Promotion

Frequently Bought Together

Postgis Cookbook + Geoserver Beginner's Guide + PostGIS in Action
Price For All Three: £92.11

Buy the selected items together

Trade In this Item for up to £12.75
Trade in Postgis Cookbook for an Amazon Gift Card of up to £12.75, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Learn more

Product details

  • Paperback: 484 pages
  • Publisher: Packt Publishing (27 Jan. 2014)
  • Language: English
  • ISBN-10: 1849518661
  • ISBN-13: 978-1849518666
  • Product Dimensions: 19 x 2.8 x 23.5 cm
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Bestsellers Rank: 285,264 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, and more.

Product Description

About the Author

Paolo Corti

Paolo Corti is based in Rome, Italy. He is an environmental engineer with more than 15 years of experience in the GIS sector. After working with proprietary solutions for some years, he has proudly switched to open-source technologies and Python for almost a decade.

He has been working as a developer and analyst for organizations such as the EU Joint Research Center, UN World Food Program, and the Italian Government.

Currently, he is working within the GeoNode project, for which he is a core developer, in the context of emergency preparedness and response.

He is an OSGeo Charter member and writes a blog on open-source GIS at

He is the author of the book's chapters 1, 3, 8, and 9.

Stephen Vincent Mather

Stephen Vincent Mather has worked in the geospatial industry for 15 years, having always had a flair for geospatial analyses in general, especially those at the intersection of Geography and Ecology. His work in open-source geospatial databases started 5 years ago with PostGIS and he immediately began using PostGIS as an analytic tool, attempting a range of innovative and sometimes bleeding-edge techniques (although he admittedly prefers the cutting edge). His geospatial career has spanned a variety of interesting and novel natural-resource projects, everything from the movement of ice sheets in Antarctica to hiking viewsheds and mobile trail applications to help park users find trails, picnic areas, and restrooms.

Stephen is currently the GIS manager for Cleveland Metroparks in Cleveland, Ohio. He manages a small geospatial shop that specializes in high-end cartography, crating and generating data, geospatial web development, and analyses for natural-resource management, largely with open-source software.

Stephen is also a Mennonite technologist, aka a straw-hat hacker, interested in creating fair and open data and infrastructure for better governance and humanitarian purposes. He is heavily involved in the Cleveland Civic Hacking movement as he works with the public to help them get engaged with geospatial data. In his spare time, he builds guitars really, really slowly.

Thomas J Kraft

Thomas J Kraft is currently a Planning Technician at Cleveland Metroparks after beginning as a GIS intern in 2011.

He graduated with Honors from Cleveland State University in 2012, majoring in Environmental Science with an emphasis on GIS.

When not in front of a computer, he enjoys his weekends landscaping and the outdoors in general.

Bborie Park

Bborie Park has been breaking (and subsequently fixing) computers for most of his life. His primary interests involve developing end-to-end pipelines for spatial datasets. He is an active contributor to the PostGIS project and is a member of the PostGIS Steering Committee. He happily resides with his wife Nicole in the San Francisco Bay Area.

Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Back Cover
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

4.5 out of 5 stars
5 star
4 star
3 star
2 star
1 star
See both customer reviews
Share your thoughts with other customers

Most Helpful Customer Reviews

Format: Paperback Verified Purchase
I found this book easy to follow and very useful. The recipes are excellent and build progressively. You will pick up considerable GIS knowledge along the way.

Well-written; a good read!
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
Format: Paperback Verified Purchase
As an intermediate/expert Postgis user I found this guide full of interesting approaches to a number of problems I'd attempted to tackle myself. For example, extruding geometries into 3D and processing DEM rasters. The level of explanation is perfect for one who already knows their way around Postgis. The Cookbook is also comprehensive and covers almost all aspects of the Postgis capabilities. I would have liked a bit more breadth in the programming chapter which is mainly python based and could have done without the desktop clients/web chapters which don't really cover Postgis capabilities.

All in all a really useful resource for anyone wondering if "Postgis can do that?" the answer is almost always "yes"
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Helpful Customer Reviews on (beta) 9 reviews
3 of 3 people found the following review helpful
Great cookbook for intermediate to advanced users 23 Mar. 2014
By Daniel Lee - Published on
Format: Kindle Edition
I started reading the PostGIS Cookbook with high expectations. Nonetheless, I was positively surprised by the quality of the book, especially regarding its reread value. Skimming through the book once will give you a good idea of what PostGIS is capable of, and it inspired me to move some important parts of automated postprocessing workflows into the database. Keeping the book around will help you put together projects more quickly and efficiently.

The book is composed of several recipes, all of which are fairly concise. You should have a bit of background working with geodata and be fairly comfortable with reading SQL in order to get the most out of it, because theoretical explanations are kept to a minimum. This is great for users at or above the intermediate level, because it's a perfect format for quickly looking up practical examples of how certain things are done without having to dig a lot. If you're looking to move from beginner to intermediate user, the examples also will help you a lot.

The chapters cover a broad variety of topics, from importing and exporting data to simple raster and vector analyses. Math algebra, terrain analyses, routing and photogrammetry are covered well, as well as serving the data locally or over a web connection and displaying it in a desktop GIS or a self-made web client. There are also some nice examples and explanations of how to administer, maintain and optimize the database itself, as well as analyzing and optimizing the performance of single queries using Postgres' built in profiler. It's helpful for the more advanced topics if you bring some prior knowledge with, but if you're just getting started in these areas the book contains good tips on where you can find further information. The focus is on practicability and presenting examples that are easy to understand, duplicate, and adapt to your own needs.

The only thing that I wish were done better is the code formating. I read the ebook version and in some chapters code blocks were missing line breaks. In the SQL this makes it hard to read, especially because no space was substituted for line breaks, which broke the syntax, but for the Python examples this was even worse because the indentation is semantically significant.
Aside from the formating problem, I was extremely pleased with the PostGIS Cookbook and will surely use it in the future often while migrating analysis steps and data storage into a Postgres/PostGIS database.
2 of 2 people found the following review helpful
Good collection of recipes but aimed more at the intermediate user of PostGIS 3 Mar. 2014
By R. M. Marsden - Published on
Format: Paperback
(Full Disclosure: Packt asked me to review the eBook version of this book)

In recent years, Postgres has been gaining ground over MySQL as the open source relational database (RDBMS) of choice, and is now arguably the open source RDBMS of choice. One of the reasons for this gain is the geospatial support provided by the PostGIS extensions. Although recent versions of MySQL do provide some geospatial support, these are very limited when compared to PostGres or a commercial database (e.g. Oracle and Microsoft SQL Server). PostGIS is supported by a wide range
of geospatial tools and systems, including most, if not all, of the major open source geospatial projects.

The PostGIS Cookbook follows the familiar Packt cookbook formula of: Introduction, Getting Ready, How to do it,
and How it works. However, few of the recipes include a "Further Information" or "Taking it Further" section. Unlike many of these cookbooks, the PostGIS Cookbook is not a beginner's tutorial that assumes minimal knowledge. Although some of the recipes cover relatively simple tasks such as importing OpenStreetMaps (OSM) data, many are much more sophisticated. Also there is not a step-by-step progression that builds knowledge in a tutorial-like manner. This is not necessarily a bad thing - it makes the book more of a genuine 'cookbook', i.e. collection of recipes that solve typical real world problems.

This does mean the book is not ideal for novices. It also assumes the reader is already familiar with Postgres. Although it introduces and explains a lot of PostGIS functionality, if the reader is not already familiar with the basics of PostGIS, they will also benefit from having access to a tutorial or reference (e.g. the official documentation).

The recipes cover a wide range of data types and sources. These should help users who are looking to import their specific data type. Recipes also reference other systems which can work well with PostGIS, such as Quantum GIS and GRASS. These references barely scratch the surface of what these systems can do, but they may be enough to inform the reader who can then go and research them further.

Chapter topics are:

- Moving Data In and Out of PostGIS: CSV, GDAL, shapefiles, OSM, rasters
- Structures: Geospatial views, triggers, inheritance, normaization, proportional polygon estimates
- Vectors - Basic: GPS data, fixing geometries, simplifications, distances, intersections, clipping, etc
- Vectors - Advanced: Efficient proximity filtering, rotations, translations, scaling, Voronoi polygons
- Rasters: Map algebra, geometetry conversion, warping & resampling, Digital Elevation Models (DEM), Visualising
- pgRouting: Loading data, Dijkstra, A*, service areas, polygon centerlines
- Nth dimension: 3d objects, LIDAR, X3D, UAV photogrammetry
- PostGIS Programming: Psycopg (Python Postgres library), OGR Python bindings, PL/Python, Geocoding (GeoNames, OSM, geopy, PL/Python), netCDF
- PostGIS and the web: UMN MapServer, GeoServer, OpenLayers, Leaflet, GeoDjango
- Maintenance, Optimization, and Performance Tuning: Backups, indexes, clustering, SQL optimization, migration
- Desktop Clients: Quantum GIS, OpenJUMP, gvSIG, uDig.

I know the pgRouting chapter would have been useful if I had had it a couple of years ago when using PostGIS to
batch calculate route distances.

Summarizing, this book is recommended for PostGIS practitioners. PostGIS novices will find it demonstrates a
sophisticated set of functionality, but they will also need a PostGIS tutorial and/or reference.
2 of 2 people found the following review helpful
Good book but hard to find the course materials 17 Aug. 2014
By J. Jasinski - Published on
Format: Paperback
I just purchased this ebook for Kindle and have read through the first few chapters. It seems very informative and I like it so far. However, when I tried to download the associated sample data to work through some of the activities, I'm having a really hard time finding it somewhere. I've searched all over the internet and the publisher website without much luck. The publisher's website appears to have a search tool for this, but it does not seem to work. I did find one github link ( with sample data but it only contains sample data from one of the authors (chapters 2,4,6,and 7). Some of the external data source links referenced in the book link to sources that aren't clear where to download the data from (either the site has changed or there aren't clear instructions on how to get a data export from that source).

Because of this issue, I'm giving this book a three star review. However, I might update this if this issue is clarified. As I mentioned, I like the book so far and would really like to work through some of the exercises with the sample data. I don't understand why these resources are so difficult to find, given that this book is centered around the exercises.
2 of 2 people found the following review helpful
Great source of inspiration and solutions 3 April 2014
By Nyall - Published on
Format: Paperback
Full of detailed code examples and guides for solving common geospatial problems in PostGIS. This is a great source of inspiration for exploring a wide variety of functions and techniques which are possible in PostGIS. This book isn't aimed at beginners - it's targeted to readers who are familiar with GIS software and have some experience in using PostGIS. Highly recommended for anyone wanting to take their PostGIS skills to the next level.
2 of 2 people found the following review helpful
Must have to Geo Geeks! 2 April 2014
By Zeeshan - Published on
Format: Paperback
PostGIS CookBook is a must have buy for any developer working with Geo content and/or location based services. The recipes are exciting - working with LIDAR data, pgRouting with OSM maps and postgis replication.

You wont find these topics in other books (very few books on PostGIS BTW), which are introductory texts and more explanatory than practical. This book serves its purpose.

Though some more recipes and a getting started with PostGIS (installation, troubleshooting, etc) should have been included, anyways a great read.
Were these reviews helpful? Let us know