Accessing PostGIS from Python
So far, we have installed some tools and libraries onto your computer. Now it's time to use those tools and libraries to do something interesting. In the remainder of this chapter, we are going to import the World Borders Dataset into a PostGIS database, which we will call world_borders
, and then use Python to perform various queries against that data. We will also see how we can manipulate that dataset using PostGIS and Python.
To start with, create a new directory named world_borders
and place it somewhere convenient. You will use this directory to store the various files you create.