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

Installing a spatial database

In this book, we are going to use one of the most popular and powerful geospatial databases: PostGIS. PostGIS is an extension to the freely available PostgreSQL relational database. To use it in our Python programs, we need to install three separate pieces of software:

  • The PostgreSQL database server itself
  • The PostGIS extension to PostgreSQL
  • The psycopg2 database adapter for Python

    Note

    PostgreSQL is often referred to simply as Postgres. We will use this more colloquial name regularly throughout this book.

Let's work through the process of installing each of these pieces of software in turn.

Installing PostgreSQL

PostgreSQL (http://postgresql.org) is one of the most powerful open source relational databases available. While ...

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