This document provides an introduction to PostGIS, an open source spatial database extender for PostgreSQL object-relational database. It discusses PostGIS' support for spatial data types, indexing, and functions. PostGIS allows for storage and query of spatial data in PostgreSQL for use in enterprise mapping, GIS, and location-based applications and services.
1. PostGIS for Enterprise
Jody Garnet
Thanks to:
Simon Greener
Paul Ramsey
Mark Leslie
Friendly Survey - Introduction 1
2. What is a Spatial Database
Spatial Data Types
Spatial Indexing
Spatial Functions
20/10/2009 Introduction to PostGIS 2
3. What is a Spatial Database?
Spatial Data Types
Point
a single coordinate of two to four dimensions
20/10/2009 Introduction to PostGIS 3
4. Line String
Spatial Data Types
Linestring
a set of two or more coordinates
linear interpretation of path between coordinates
20/10/2009 Introduction to PostGIS 4
5. Linear Ring
Spatial Data Types
Linearring
a linestring with three or more coordinates
the start and end points are the same
20/10/2009 Introduction to PostGIS 5
6. Polygon
Spatial Data Types
Polygon
a set of one or more linearrings
one ring defines the exterior boundary
remainder defines the holes in the polygon
20/10/2009 Introduction to PostGIS 6
7. Multi Geometries
Spatial Data Types
Multi-geometries (Multipoint, Multilinestring, Multipolygon)
a set of like geometries
20/10/2009 Introduction to PostGIS 7
15. ST_SIMPLIFY
“Denormalisation” of feature types into multiple tables based on
known or expected access patterns
Roads are visualised with different style classes and
rendered at different scales
20/10/2009 Introduction to PostGIS 15
16. Spatial Extensions for PostgreSQL
Spatial Extensions for PostgreSQL
Provides Spatial Data Type
Provides Spatial Indexing
Provides Spatial Functions
20/10/2009 Introduction to PostGIS 16
17. PostgreSQL for Spatial
Spatial Extensions for PostgreSQL
PostgreSQL Extensions for Spatial
ACID transaction guarantees
Enterprise reliability
Crash recovery
Hot backup
Replication
SQL support
20/10/2009 Introduction to PostGIS 17
18. PostGIS History
• Developed in 2001 by Refractions Research
– to assist Refractions in their data processing tasks
Friendly Survey - Introduction 18
19. Growth
• Initially just an indexed load-store extension to allow
concurrent access to data
• Functions added based on Simple Features for SQL
(using GEOS which is a port of JTS)
• PostGIS 1.0 provided fast / lighter Geometry object
Friendly Survey - Introduction 19
20. PostGIS Roadmap
• Geography objects (spherical geometries)
• Raster-in-db
• curved geometry support
• News update - PostGIS is now in OSGeo
Friendly Survey - Introduction 20
22. Institut Geographique National, France
National mapping agency of France
Stores high-res topographic data
20/10/2009 Introduction to PostGIS 22
23. GlobeXplorer
• Provides web-based access to petabytes of imagery
• PostGIS is used to manage metadata and search for relevant
imagery
20/10/2009 Introduction to PostGIS 23
24. LISAsoft
• (my employer!)
Reverse Store SnapMaps Buddy Mokbee
Geocoder Locator Finder
Data Service Mobile Applications
GeoServer PostGIS
TileCache
Publication Services
20/10/2009 Introduction to PostGIS 24
25. Team CIMAR : DARPA Grand Challenge
Friendly Survey - Introduction 25
26. Standards
• Level playing field
– Open Geospatial Consortium
– International Standards Organization
– W3C Consortium (XML/SVG)
• Simple Features for SQL / SQL Multi-Media Extensions
Friendly Survey - Introduction 26