by Matthew Forrest
Learn to create, index and query spatial databases using SQL that applies to PostgreSQL/PostGIS and more.
Learn how to use Spatial SQL to analyze and manipulate geographic data. This book covers everything from basic spatial queries to advanced spatial analysis techniques all using SQL. Even if you don't know how SQL, this book starts from the beginning all the way to advanced queries.
Over 500 pages covers a comprehensive set of GIS topics.
The evolution to modern GIS, why spatial SQL matters, and the spatial SQL landscape today
Setting upInstalling PostGIS with Docker on any operating system
Thinking in SQLHow to move from desktop GIS to SQL and learn how to structure queries independently
The basics of SQLImport data to PostgreSQL and PostGIS, SQL data types, and core SQL operations
Advanced SQLStatistical functions, joins, window functions, managing data, and user-defined functions
Using the GEOMETRYWorking with GEOMETRY and GEOGRAPHY data, data manipulation, and measurements
Spatial relationshipsSpatial joins, distance relationships, clustering, and overlay functions
Spatial analysisRecreate common spatial analysis "toolbox" tools all in spatial SQL
Advanced analysisData enrichment, line of sight, kernel density estimation, and more
Raster dataImporting, analyzing, interpolating, and using H3 spatial indexes with raster data in PostGIS
Suitability analysisImporting, analyzing, interpolating, and using H3 spatial indexes with raster data in PostGIS
Routing with pgRoutingRouting for cars and bikes, travel time isochrones, and traveling salesperson problem
Spatial data scienceSpatial autocorrelation, location allocation, and create territories with PySAL in PostGIS
To keep up to date on this and our other books, subscribe to our low-volume newsletter.
Our paperbacks can be ordered from Amazon or Ingram. E-books (PDF) can be ordered and downloaded directly from our Purchase E-books page.
If you need multiple print copies of our titles, contact us directly to place an order and save up to 20% when you purchase five or more copies. We print in, and ship from USA, UK, and Australia, but can deliver almost anywhere.
To get a quote and/or place an order, please contact us for details. Before you order, please read our Return Policy.