PostGIS
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Training Materials

Workshop

The “Introduction to PostGIS” workshop is a hands-on step-by-step walk through PostGIS basics. Loading data, creating tables, writing queries, and more.

Welcome to PostGIS workbook, accompanying videos (Quisheng Wu) - spatial data management with PostgreSQL, PostGIS, and Jupyter Python Notebook. This workbook also uses some data from Introduction to PostGIS workshop.

PostGIS Baby Steps, Grace Amondi - training series covering basics of PostGIS, loading data, using pgAdmin4, and querying with QGIS. This training series uses some data from Introduction to PostGIS workshop.

Data Conversion and ETL

GDAL and OGR are the standard tools for moving vector datasets between PostGIS and other spatial formats.

  • The PostGIS manual documents shp2pgsql and the graphical shapefile loader.
  • The GDAL PostgreSQL/PostGIS driver documents PostGIS connection options for GDAL vector tools.
  • ogr2ogr converts data between PostGIS and formats such as GeoPackage, Shapefile, GeoJSON, and GML.
  • The GDAL SQLite and SpatiaLite driver documents SpatiaLite import and export workflows.
  • sqlite_fdw can expose SQLite and SpatiaLite files to PostgreSQL queries when foreign-table access is a better fit than format conversion.

OpenStreetMap Data

OpenStreetMap data is a common way to explore PostGIS with real roads, buildings, points of interest, and routing networks.

  • osm2pgsql imports OpenStreetMap data into PostgreSQL/PostGIS for rendering, analysis, and custom schemas.
  • GDAL’s OSM driver can read OpenStreetMap XML and PBF files for smaller imports or ETL workflows.
  • Imposm and libosmium are useful for specialized import pipelines and custom processing.
  • Switch2OSM explains the broader toolchain for rendering OpenStreetMap data and serving map tiles.
  • The OpenStreetMap wiki maintains background material on data access and database schemas.

For a longer worked treatment, see the book Mastering PostGIS and OpenStreetMap.

Books

Web Sites

Historical Tutorials and Talks

These community resources are kept for historical reference. Some use older PostGIS and PostgreSQL versions, so start with the current workshop above for new projects.

2019

2015

2011

2010

2009

2007

Undated Community Tutorials