O'Reilly logo

PostGIS Cookbook by Bborie Park, Stephen Vincent Mather, Thomas J. Kraft, Paolo Corti

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

Chapter 8. PostGIS Programming

In this chapter, we will cover the following topics:

  • Writing PostGIS vector data with Psycopg
  • Writing PostGIS vector data with OGR Python bindings
  • Writing PostGIS functions with PL/Python
  • Geocoding and reverse-geocoding using the GeoNames datasets
  • Geocoding using the OSM datasets with trigrams
  • Geocoding with geopy and PL/Python
  • Importing netCDF datasets with Python and GDAL

Introduction

There are several ways to write PostGIS programs; in this chapter, we will see a few of them. You will mainly use the Python language throughout this chapter. Python is a fantastic language with a plethora of GIS and a scientific library that can be combined with PostGIS to write awesome geospatial applications.

In case you are new to Python ...

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