O'Reilly logo

Python Geospatial Analysis Essentials by Erik Westra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required