This chapter covered three Python libraries for working with vector data—OGR, Shapely, and GeoPandas. In particular, we showed how to use all three for doing geospatial analysis and processing. Each library was covered separately, with their classes, methods, data structures and popular use cases. Short example scripts showed how to get started doing data processing and analysis. Taken as a whole, the reader now knows how to use each library separately, as well as how to combine all three for doing the following tasks:
- Reading and writing vector data
- Creating and manipulating vector data
- Plotting vector data
- Working with map projections
- Performing spatial operations
- Working with vector geometries and attribute data in tabular form
- Presenting and analyzing the data to answer questions with a spatial component
The next chapter discusses raster data processing and...