O'Reilly logo

Python Geospatial Analysis Essentials by Erik Westra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Manipulating spatial data

You are not limited to just using static data in your spatial analysis. You can also create new geometries and manipulate existing geometries directly within a PostGIS database. While it's easy to create a brand new geometry using functions such as the ST_GeogFromText() function we used earlier, you can also use the PostGIS geometry editing and geometry processing functions to create new geography values derived from old ones.

Note

There are some limitations on the functions available when you use the PostGIS GEOGRAPHY type. PostGIS originally only supported the GEOMETRY data type, which was designed to only work with spatial data projected onto a flat Cartesian plane. When using the GEOGRAPHY field, check the PostGIS manual ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required