Book description
In PostGIS in Action, Third Edition you will learn:- An introduction to spatial databases
- Geometry, geography, raster, and topology spatial types, functions, and queries
- Applying PostGIS to real-world problems
- Extending PostGIS to web and desktop applications
- Querying data from external sources using PostgreSQL Foreign Data Wrappers
- Optimizing queries for maximum speed
- Simplifying geometries for greater efficiency
PostGIS in Action, Third Edition teaches readers of all levels to write spatial queries for PostgreSQL. You’ll start by exploring vector-, raster-, and topology-based GIS before quickly progressing to analyzing, viewing, and mapping data. This fully updated third edition covers key changes in PostGIS 3.1 and PostgreSQL 13, including parallelization support, partitioned tables, and new JSON functions that help in creating web mapping applications.
About the Technology
PostGIS is a spatial database extender for PostgreSQL. It offers the features and firepower you need to take on nearly any geodata task. PostGIS lets you create location-aware queries with a few lines of SQL code, then build the backend for mapping, raster analysis, or routing application with minimal effort.
About the Book
PostGIS in Action, Third Edition shows you how to solve real-world geodata problems. You’ll go beyond basic mapping, and explore custom functions for your applications. Inside this fully updated edition, you’ll find coverage of new PostGIS features such as PostGIS Window functions, parallelization of queries, and outputting data for applications using JSON and Vector Tile functions.
What's Inside
- Fully revised for PostGIS version 3.1 and PostgreSQL 13
- Optimize queries for maximum speed
- Simplify geometries for greater efficiency
- Extend PostGIS to web and desktop applications
About the Reader
For readers familiar with relational databases and basic SQL. No prior geodata or GIS experience required.
About the Authors
Regina Obe and Leo Hsu are database consultants and authors. Regina is a member of the PostGIS core development team and the Project Steering Committee.
Quotes
The best introduction I’ve seen for engineers who want to get ramped up quickly and build advanced GIS applications.
- Ikechukwu Okonkwo, Orum.io
A wealth of information that showcases how powerful PostGIS is.
- Luis Moux-Dominguez, EMO
An extraordinary book for the world of GIS. Truly learned a lot!
- DeUndre’ Rushon, DigiDiscover LLC
Gives you insight into how best to provide map services for a wide audience.
- Marcus Brown, Enel Green Power
Publisher resources
Table of contents
- From the 2nd edition of PostGIS in Action by Regina O. Obe and Leo S. Hsu
- PostGIS in Action
- Copyright
- dedication
- brief contents
- contents
- front matter
- Part 1. Introduction to PostGIS
- 1 What is a spatial database?
- 2 Spatial data types
- 3 Spatial reference systems
-
4 Working with real data
- 4.1 PostgreSQL built-in tools
- 4.2 Downloading files
- 4.3 Extracting files
- 4.4 Importing and exporting shapefiles
- 4.5 Importing and exporting vector data with ogr2ogr
- 4.6 Querying external data using PostgreSQL foreign data wrappers
- 4.7 Importing raster data with raster2pgsql
- 4.8 Exporting raster data with GDAL
- Summary
-
5 Using PostGIS on the desktop
- 5.1 Desktop viewing tools at a glance
- 5.2 OpenJUMP
- 5.3 QGIS
- 5.4 GvSIG
-
5.5 JupyterLab and Jupyter Notebook
- 5.5.1 Installing Jupyter
- 5.5.2 Launching Jupyter Notebook
- 5.5.3 Launching JupyterLab
- 5.5.4 Creating a Python notebook
- 5.5.5 Magic commands
- 5.5.6 Performing raw queries with Jupyter Notebook
- 5.5.7 UTable 5.6 sing GeoPandas, Shapely, and Matplotlib to work with spatial data
- 5.5.8 Viewing data on a map with folium
- Summary
-
6 Geometry and geography functions
-
6.1 Output functions
- 6.1.1 Well-known text (WKT) and well-known binary (WKB)
- 6.1.2 Keyhole Markup Language (KML)
- 6.1.3 Geography Markup Language (GML)
- 6.1.4 Geometry JavaScript Object Notation (GeoJSON)
- 6.1.5 Scalable Vector Graphics (SVG)
- 6.1.6 Mapbox Vector Tiles (MVT) and protocol buffers
- 6.1.7 Tiny WKB (TWKB)
- 6.1.8 Extensible 3D Graphics (X3D)
- 6.1.9 Examples of output functions
- 6.1.10 Geohash
- 6.2 Constructor functions
-
6.3 Accessor and setter functions
- 6.3.1 Spatial reference identifiers
- 6.3.2 Transforming geometry to different spatial references
- 6.3.3 Using transformation with the geography type
- 6.3.4 Geometry type functions
- 6.3.5 Geometry and coordinate dimensions
- 6.3.6 Retrieving coordinates
- 6.3.7 Checking geometry validity
- 6.3.8 Number of points that define a geometry
- 6.4 Measurement functions
- 6.5 Decomposition functions
- 6.6 Composition functions
- 6.7 Simplification functions
- Summary
-
6.1 Output functions
-
7 Raster functions
- 7.1 Raster terminology
-
7.2 Raster constructors
- 7.2.1 Converting geometries to rasters with ST_AsRaster
- 7.2.2 Loading rasters with raster2pgsql
- 7.2.3 Constructing rasters from scratch: ST_MakeEmptyRaster and ST_AddBand
- 7.2.4 Setting pixels: ST_SetValue and ST_SetValues
- 7.2.5 Creating rasters from other rasters
- 7.2.6 Converting other raster formats with ST_FromGDALRaster
- 7.3 Raster output functions
- 7.4 Raster accessors and setters
- 7.5 Georeferencing functions
- 7.6 Reclassing functions
- 7.7 Polygonizing functions
- Summary
-
8 Spatial relationships
- 8.1 Bounding box and geometry comparators
-
8.2 Relating two geometries
- 8.2.1 Interior, exterior, and boundary of a geometry
- 8.2.2 Intersections
- 8.2.3 A house plan model
- 8.2.4 Contains and within
- 8.2.5 Covers and covered by
- 8.2.6 Contains properly
- 8.2.7 Overlapping geometries
- 8.2.8 Touching geometries
- 8.2.9 The faces of equality: geometry
- 8.2.10 Underpinnings of relationship functions
- Summary
- Part 2. Putting PostGIS to work
- 9 Proximity analysis
- 10 PostGIS TIGER geocoder
- 11 Geometry and geography processing
- 12 Raster processing
- 13 Building and using topologies
- 14 Organizing spatial data
- 15 Query performance tuning
- Part 3. Using PostGIS with other tools
- 16 Extending PostGIS with pgRouting and procedural languages
- 17 Using PostGIS in web applications
- Appendix A. Additional resources
-
Appendix B. Installing, compiling, and upgrading
-
B.1 Installing PostgreSQL and PostGIS
- B.1.1 Using PostgreSQL and PostGIS in Docker
- B.1.2 EnterpriseDB one-click installers
- B.1.3 MacOS-specific installers
- B.1.4 Installing on a Linux server (Red Hat EL, CentOS) using YUM
- B.1.5 PostgreSQL Apt repository
- B.1.6 Other available binaries and distros
- B.1.7 Database as a service offerings for PostGIS
- B.1.8 Compiling and installing from PostGIS source
- B.2 Creating a PostGIS database
- B.3 Upgrading PostGIS
-
B.1 Installing PostgreSQL and PostGIS
- Appendix C. SQL primer
- Appendix D. PostgreSQL features
- index
Product information
- Title: PostGIS in Action, Third Edition
- Author(s):
- Release date: September 2021
- Publisher(s): Manning Publications
- ISBN: 9781617296697
You might also like
book
PostGIS Cookbook - Second Edition
Create and manage spatial data with PostGIS About This Book Import and export geographic data from …
book
PostgreSQL 10 High Performance
Leverage the power of PostgreSQL 10 to design, administer and maintain a high-performance database solution About …
book
Learning PostgreSQL 11
Leverage the power of PostgreSQL 11 to build powerful database and data warehousing applications Key Features …
book
PostgreSQL: Up and Running, 3rd Edition
Thinking of migrating to PostgreSQL? This clear, fast-paced introduction helps you understand and use this open …