In the previous chapters, you learned how to set up your Python environment and learned about the different libraries available for working with geospatial data using Python. In this chapter, you will start working with data.
Databases provide one of the most popular ways to store large amounts of data, and one of the most popular open source databases is PostgreSQL. PostGIS extends PostgreSQL, adding geographic objects and the ability to query records spatially. When PostgreSQL and PostGIS are combined, they create a powerful geospatial data repository.
Geospatial databases improve on basic relational database queries by allowing you to query your data by location or by location to other features in the database. You can also perform geospatial operations such as measurements of features, distances between features, and converting between...