This chapter will cover geospatial analysis and processing of vector data. The following three Python libraries will be covered—Shapely, OGR, and GeoPandas. The reader will learn how to use these Python libraries to perform geospatial analysis, including the writing of basic and advanced analysis scripts.
Each library is covered separately, with an overview of its data structures, methods, and classes where appropriate. We'll discuss the best use cases for each library and how to use them together for geospatial workflows. Short example scripts illustrate how to perform the basic geographical analysis. The GeoPandas library enables more complex functionality for doing data science tasks and incorporating geospatial analysis.
In this chapter, we'll cover the following topics:
- Reading and writing vector data
- Creating and manipulating vector...