Book Image

Python Geospatial Analysis Cookbook

Book Image

Python Geospatial Analysis Cookbook

Overview of this book

Table of Contents (20 chapters)
Python Geospatial Analysis Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Other Geospatial Python Libraries
Mapping Icon Libraries
Index

Chapter 4. Working with PostGIS

In this chapter we will cover the following topics:

  • Executing a PostGIS ST_Buffer analysis query and exporting it to GeoJSON

  • Finding out whether a point is inside a polygon

  • Splitting LineStrings at intersections using ST_Node

  • Checking the validity of LineStrings

  • Executing a spatial join and assigning point attributes to a polygon

  • Conducting a complex spatial analysis query using ST_Distance()