更新时间:2021-07-19 18:30:12
coverpage
PostGIS Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Moving Data In and Out of PostGIS
Introduction
Importing nonspatial tabular data (CSV) using PostGIS functions
Importing nonspatial tabular data (CSV) using GDAL
Importing shapefiles with shp2pgsql
Importing and exporting data with the ogr2ogr GDAL command
Handling batch importing and exporting of datasets
Exporting data to the shapefile with the pgsql2shp PostGIS command
Importing OpenStreetMap data with the osm2pgsql command
Importing raster data with the raster2pgsql PostGIS command
Importing multiple rasters at a time
Exporting rasters with the gdal_translate and gdalwarp GDAL commands
Chapter 2. Structures that Work
Using geospatial views
Using triggers to populate a geometry column
Structuring spatial data with table inheritance
Extending inheritance – table partitioning
Normalizing imports
Normalizing internal overlays
Using polygon overlays for proportional census estimates
Chapter 3. Working with Vector Data – The Basics
Working with GPS data
Fixing invalid geometries
GIS analysis with spatial joins
Simplifying geometries
Measuring distances
Merging polygons using a common attribute
Computing intersections
Clipping geometries to deploy data
Simplifying geometries with PostGIS topology
Chapter 4. Working with Vector Data – Advanced Recipes
Improving proximity filtering with KNN
Improving proximity filtering with KNN – advanced
Rotating geometries
Improving ST_Polygonize
Translating scaling and rotating geometries – advanced
Generating detailed building footprints from LiDAR
Using external scripts to embed new functionality in order to calculate a Voronoi diagram
Using external scripts to embed other libraries in order to calculate a Voronoi diagram – advanced
Chapter 5. Working with Raster Data
Getting and loading rasters
Working with basic raster information and analysis
Performing simple map-algebra operations
Combining geometries with rasters for analysis
Converting between rasters and geometries
Processing and loading rasters with GDAL VRT
Warping and resampling rasters
Performing advanced map-algebra operations
Executing DEM operations
Sharing and visualizing rasters through SQL
Chapter 6. Working with pgRouting
Startup – Dijkstra routing
Loading data from OpenStreetMap and finding the shortest path using A*
Driving distance/service area calculation
Calculating demographics using driving distance
Extracting the centerlines of polygons
Chapter 7. Into the Nth Dimension
Importing LiDAR data
Performing 3D queries on a LiDAR point cloud
Constructing and serving buildings 2.5 D
Using ST_Extrude to extrude building footprints
Creating arbitrary 3D objects for PostGIS
Exporting models as X3D for the Web
Reconstructing Unmanned Aerial Vehicle (UAV) image footprints with PostGIS 3D
UAV photogrammetry in PostGIS – point cloud
UAV photogrammetry in PostGIS – orthorectification
UAV photogrammetry in PostGIS – DSM creation
Chapter 8. PostGIS Programming
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
Chapter 9. PostGIS and the Web
Creating WMS and WFS services with MapServer
Creating WMS and WFS services with GeoServer