or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $11.05 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

PostGIS in Action [Paperback]

Regina Obe , Leo Hsu , Paul Ramsey
5.0 out of 5 stars  See all reviews (9 customer reviews)

List Price: $49.99
Price: $41.76 & FREE Shipping. Details
You Save: $8.23 (16%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 18 left in stock (more on the way).
Ships from and sold by Amazon.com. Gift-wrap available.
Want it Tuesday, May 21? Choose One-Day Shipping at checkout. Details
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

April 28, 2011 In Action
Whether you're canvassing a congressional district, managing a sales region, mapping city bus schedules, or analyzing local cancer rates, thinking spatially opens up limitless possibilities for database users. PostGIS, a freely available open-source spatial database extender, can help you answer questions that you could not answer using a mere relational database. Its feature set equals or surpasses proprietary alternatives, allowing you to create location-aware queries and features with just a few lines of SQL code.
PostGIS in Action is the first book devoted entirely to PostGIS. It will help both new and experienced users write spatial queries to solve real-world problems. For those with experience in more traditional relational databases, this book provides a background in vector-based GIS so you can quickly move to analyzing, viewing, and mapping data. Advanced users will learn how to optimize queries for maximum speed, simplify geometries for greater efficiency, and create custom functions suited specifically to their applications. It also discusses the new features available in PostgreSQL 9.0 /9.1 and PostGIS 2.0 and provides tutorials on using additional open source GIS tools in conjunction with PostGIS.

Frequently Bought Together

PostGIS in Action + Python Geospatial Development
Price for both: $86.19

Buy the selected items together

Customers Who Bought This Item Also Bought


Editorial Reviews

From the Inside Flap

This book isn't a substitute for the official PostGIS documentation. The official PostGIS
documentation does a good job of introducing you to the myriad of functions available
in PostGIS and provides examples on how to use each. It won't tell you how to
combine all these functions into a recipe to solve your problems. That is the purpose
of our book. Although it doesn't cover all functions available in PostGIS, this book
does cover the more commonly used or interesting ones and gives you the skills you
need to combine them to solve classic and more esoteric but interesting problems in
spatial analysis and modeling.

While you can use this book as a source of reference, we recommend that you do
visit the official PostGIS site and download or peruse the documentation.

This book focuses on two-dimensional non-curved Cartesian vector geometries.
Although it is primarily about writing spatial queries against 2D vector geometries, we
provide introductions to the following ancillary topics:

  • Creating 3D vector geometries
  • Creating curved geometries
  • Creating and querying the geodetic geography data type
  • Working with raster data using the companion raster data type (integrated in
    PostGIS 2.0)
While the main purpose of this book is the use of PostGIS, we'd fall short of our mission
if we neglected to provide some perspective on the landscape it lives in. PostGIS is
not an island and rarely works alone. To complete the cycle, we also include the following:

  • An extensive appendix that covers PostgreSQL in great detail from setup, to
    backup, to security management, as well as the fundamentals of SQL and creating
    functions and other objects in it
  • Several chapters dedicated to the use of PostGIS in web mapping, viewing using
    desktop tools, PostgreSQL PL languages commonly used with PostGIS, and extra
    open source add-ons such as the TIGER geocoder, pgRouting, PL/R, and PL/
    Python

From the Back Cover

What's Inside
  • An introduction to spatial databases
  • Geometry types, functions, and queries
  • Applying PostGIS to real-world problems
  • Extending PostGIS to web and desktop applications
Familiarity with relational database concepts is helpful
but not required.

Product Details

  • Paperback: 520 pages
  • Publisher: Manning Publications; Pap/Psc edition (April 28, 2011)
  • Language: English
  • ISBN-10: 1935182269
  • ISBN-13: 978-1935182269
  • Product Dimensions: 7.4 x 1 x 9.2 inches
  • Shipping Weight: 1.8 pounds (View shipping rates and policies)
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (9 customer reviews)
  • Amazon Best Sellers Rank: #200,153 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

5.0 out of 5 stars
(9)
5.0 out of 5 stars
4 star
0
3 star
0
2 star
0
1 star
0
Most Helpful Customer Reviews
8 of 8 people found the following review helpful
By Paolo C
Format:Paperback
PostGIS in action has landed: finally a book about PostGIS, we were all missing it!
A software project that has a public visibility since almost 10 years, with a large community and a long series of use cases, finally has its deserved book.

I started using PostGIS in 2006 in a situation where the company I were working for at that time had to cut the cost of licenses and maintenance. Opting for FOSS gave us also the possibility to eliminate long administrative times needed to change any of the requirements in the licenses.
But above all, we knew to select a technology that could provide more sustainable conditions as only Open Source software can provide.
With all this in my mind, I identified in PostGIS (and Postgres) a perfect replacement for the system that was in production at that time (based on ArcSDE and MS SQL Server): we would have never switch back.

At that time the software was already excellent, but the documentation was not yet at the current level.
Though, there was (and it is still there) an indispensable resource that came handy for requiring help: the mailing list.
And you could count on the fact that at any time of the day, Regina and Leo, the authors of the "PostGIS in Action" book, were there to try to give you an answer or helping you to find one.

Now I have to admit that having this book at that time it would have been a dream!
But even now, after five years of experience and hacks on the best open source spatial database out there, I can safely say that reading the book has given me (and will give me) many benefits.
The reading of the material assembled for this book by the authors that I made during these months of the Manning Early Access Program (Manning is a great publishing company that, as Packt and apress gives a great choices of book titles about FOSS) has been impressive.

And now I am here to say that, if at some extent I was thinking to have an extensive knowledge of this excellent open source spatial database, after reading the book of Regina and Leo I realized how actually I was wrong!
I found in the book lots of different ideas, and my knowledge of PostGIS has been definitely improved.
In simple words, I think that the book is an effective reading not only for the experienced developer and GIS analyst, but even people getting started with PostGIS will find many benefits reading it. Any GIS developer or architect willing to do any serious development with PostGIS should have a copy of this book always available around.

PART I

The book is an impressive block of over 500 pages, but the reading is always very fluent. It is divided into three parts: the first part describes the base concepts, starting from the definition and the features of a spatial database and following with a description and a brief history of the Postgres and PostGIS projects. Finally it provides a first quick and illuminating example (Chapter 1).

Chapter 2 introduces the supported geometry type: here there is an explanation about the aims of the geometry_columns table, about the concept of dimension and spatial reference system (SRID).
Then there is a discussion of the main functions that interact with the geometry_columns table, particularly AddGeometryColumn, DropGeometryColumn, UpdateGeometrySRID and Populate_Geometry_Columns.
The chapter concludes with an overview of the different geometries according to the OGC specification, with a parallel of their description and the use of them within PostGIS: useful examples are given here (as indeed throughout the whole course of the book).

The third chapter attempts to illustrate the different approaches for the storage of spatial information (heterogeneous and homogeneous geometry columns), with the pros and cons of each approach.
There is then a description of the concept of inheritance of tables in Postgres and its usefulness.
The chapter concludes with a real use case in which the various approaches described earlier are applied, with an additional description of database rules and triggers.

Chapter 4, together with chapter 5, possibly constitute the core of the book: there is an extended description of the main spatial functions included with PostGIS.
After a quick overview of geometry constructors functions (ST_GeomFromText, ST_GeomFromEWKT, ST_GeomFromWKB and similiars), the chapter describes the output functions such as ST_AsGML.
It follows a quick description of the main geometric supported formats (WKT, EWKT, WKB, GML, KML, GeoJSON, .. .) and the geometric types conversion functions.
It is then explained which functions to use to project a geometry of a spatial reference system to another and then how to verify the validity of a geometry. Following there is an overview of the measurement functions (ST_Length, ST_Length3D, ST_Area, and ST_Perimeter), functions of decomposition (ST_Box2D, ST_Envelope), the ST_X and ST_Y functions to get the coordinates of points, ST_Boundary and functions to obtain the centroid, the point on surface ant the nth point (ST_Centroid, ST_PointOnSurface, ST_PointN).
Finally the chapter introduces an overview of the functions for collection geometries and multi Breaking down (ST_GeometryN ST_Dump), of the functions of composition (ST_Point and ST_MakePoint for making points, ST_MakePolygon, ST_BuildArea and ST_Polygonize for making polygons, ST_Multi for promoting single to multi geometries) and of the functions for simplification (ST_SnapToGrid, ST_Simplify, and ST_SimplifyPreserveTopology).

In the fifth chapter, first the authors introduce the functions of relationship between geometries. Then there is an analysis of functions like ST_Intersects, ST_Contains, ST_Within, ST_Covers, ST_ContainsProperly, ST_Touches, ST_Crosses, ST_Disjoint, ST_Difference, ST_SymDifference.
There is then a description of nearest-neighbor functions like ST_DWithin and ST_Distance. Finally the chapter concludes with an overview of the functions of equality (ST_Equals, ST_OrderingEquals), and the use of the intersection matrix with ST_Relate.

In Chapter 6 spatial reference systems are introduced and extensively described. After some theoretical concepts (particularly useful for those who are beginners with GIS), there is a list of considerations about which system to choose to store data on the database, particularly on consequences if you are choosing the WGS 84 lat lon (EPSG: 4326) - a very common choice - and why if you choose such a system it is sometimes preferable to use the new Geography data type available in PostGIS 1.5.
The chapter concludes with some considerations on how to determine the spatial reference system (SRID) of an existing spatial dataset, such as Shapefile from a .prj file.

The first part of the book ends with Chapter 7, which describes the tool (from the CLI and UI) available for import and export data from PostgreSQL (psql, copy, pgAdmin III, pg_dump and pg_restore ) and PostGIS (shp2pgsql, shp2pgsql-gui, pgsql2shp).
The chapter then introduces the powerful ogr2ogr command (included in GDAL), some QGIS tools for loading data in PostGIS, the osm2pgsql command for loading OpenStreetMap data and the pgsql2shp command to export a PostGIS layer to a shapefile.
The descriptions are accompanied with brief and useful tutorials very focused on the concepts.

PART II

Part two of the book consists of only two chapters, which describe techniques for solving spatial problems using the features and functions described in previous chapters (Chapter 8) and how to make successful performance tuning (Chapter 9).
Chapter 8 in particular is divided into techniques for the proximity analysis, data tagging and slicing and splicing of LineString and Polygon.
It closes with a section on how to do a translation, scaling and rotation of a geometry.

Chapter 9 provides an extensive overview on performance tuning to optimize the response time of the database. After a description of the query planner tool for PostgreSQL, there is an overview of the explain plans and of the importance of choosing the correct keys and indexes.
It follows a description of some typical SQL pattern (subselect, from subselect, self-joins) and how they can impact on performance.
Finally the chapter describes the possible effectiveness of some system settings and functions, and make some remarks on problems generated by the geometries (for example, to avoid invalid geometry, to use simplification of shapes, to remove holes and clustering).

PART III

The last part of the book, part three, is possibly the most interesting part, being the most applicative one: it describes the use of PostGIS with other tools and frameworks.

In particular, Chapter 10 describes how to expand the capabilities of Postgres SQL with add ons such as the TIGER geocoder (specific to U.S. data of U.S. Census), the pgRouting library, which allows the resolution of numerical optimization problems on graphs (shortest path algorithms and traveling salesperson problem) and the extension of functionality of Postgres with another language, such as Python or R (but there is support for many others), by using PLs.
At this point there is an extensive and interesting tutorial that shows the interface with R, the well-known statistical language, through PL/R, to develop stored procedures with statistics functions. The tutorial introduces rgdal as well (the library interface R/GDAL), by which there is an interface to spatial data outside the database.
Python developers will find interesting the following tutorial, that explains how it is possible to extend Postgres using Python libraries with PL/Python. Read more ›
Comment | 
Was this review helpful to you?
6 of 6 people found the following review helpful
5.0 out of 5 stars Solid and Comprehensive April 19, 2011
Format:Paperback
I wish we saw more books of this quality in the computer technology field. "PostGIS in Action" has sufficient introductory material to quickly get a new user up and running, and excellent examples for intermediate users working their way thru the PostGIS documentation. But the real value of the book is in the in-depth and authoritative discussion of the various approaches to solving a problem. Rather than simply providing a "cookbook" solution to a problem, "PostGIS in Action" discusses the topic in sufficient detail that you can apply the solution to your own work with confidence that you have "done it right".
Comment | 
Was this review helpful to you?
3 of 3 people found the following review helpful
5.0 out of 5 stars The perfect book for PostGIS May 8, 2011
By Houdini
Format:Paperback|Amazon Verified Purchase
I just started a new project using PostGIS, and this book has been invaluable to that experience. So whether you're just getting started or you're already an expert in few GIS systems, this book has it all. The coverage of this book is very comprehensive, the examples are clear and tangible (and cover real world problems, which I thought was amazing), and the book is written well enough that even the novice database developer can learn from this book.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Go for it.
One of the best books ever read in PostGIS.Better to have this book on GIS developer's desk- consists detail descriptions and examples of how to play with geospatial data with the... Read more
Published 16 months ago by Evilinside
5.0 out of 5 stars An invaluable PostGIS guide
PostGIS is an open source software program that adds support for geographic objects to the PostgreSQL object-relational database. Read more
Published 20 months ago by LUIS Bahiana
5.0 out of 5 stars Great Book for anyone using PostGIS
If you are using or wanting to learn PostGIS you need this book. As noted by other reviewers this book is well written, comprehensive, and UNLIKE a lot of other software books it... Read more
Published 21 months ago by David Chazin
5.0 out of 5 stars The power of PostGIS/PostgreSQL spatial database
I love the PostGIS/PostgreSQL spatial database. Before I bought the PostGIS in Action Book from Amazon, I got a link and downloaded a draft of the PostGIS in Action. Read more
Published 22 months ago by Charles
5.0 out of 5 stars Comprehensive coverage of PostGIS for novices and experts alike
PostGIS in Action is a very comprehensive introduction to PostGIS for
developers of all levels of experience. Read more
Published on April 19, 2011 by justarb
5.0 out of 5 stars An awesome book for beginners and experts alike
This is an excellent book. PostGIS deals with evaluating the "where" or location of objects. Whether you are working with tracking assets, friends, building locations shapes or... Read more
Published on April 5, 2011 by Stephen Woodbridge
Search Customer Reviews
Only search this product's reviews

What Other Items Do Customers Buy After Viewing This Item?


Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Listmania!


Create a Listmania! list

So You'd Like to...


Create a guide


Look for Similar Items by Category