PostGIS Manual

Abstract

PostGIS is an extension to the PostgreSQL object-relational database system which allows GIS (Geographic Information Systems) objects to be stored in the database. PostGIS includes support for GiST-based R-Tree spatial indexes, and functions for analysis and processing of GIS objects.


Table of Contents

1. Introduction
1.1. Credits
1.2. More Information
2. Installation
2.1. Requirements
2.2. PostGIS
2.2.1. Upgrading
2.2.2. Common Problems
2.3. JDBC
2.4. Loader/Dumper
3. Frequently Asked Questions
4. Using PostGIS
4.1. GIS Objects
4.1.1. OpenGIS WKB and WKT
4.1.2. PostGIS EWKB, EWKT and Canonical Forms
4.2. Using OpenGIS Standards
4.2.1. The SPATIAL_REF_SYS Table
4.2.2. The GEOMETRY_COLUMNS Table
4.2.3. Creating a Spatial Table
4.2.4. Ensuring OpenGIS compliancy of geometries
4.3. Loading GIS Data
4.3.1. Using SQL
4.3.2. Using the Loader
4.4. Retrieving GIS Data
4.4.1. Using SQL
4.4.2. Using the Dumper
4.5. Building Indexes
4.5.1. GiST Indexes
4.5.2. Using Indexes
4.6. Complex Queries
4.6.1. Taking Advantage of Indexes
4.6.2. Examples of Spatial SQL
4.7. Using Mapserver
4.7.1. Basic Usage
4.7.2. Frequently Asked Questions
4.7.3. Advanced Usage
4.7.4. Examples
4.8. Java Clients (JDBC)
4.9. C Clients (libpq)
4.9.1. Text Cursors
4.9.2. Binary Cursors
5. Performance tips
5.1. Small tables of large geometries
5.1.1. Problem description
5.1.2. Workarounds
5.2. CLUSTERing on geometry indices
5.3. Avoiding dimension conversion
6. PostGIS Reference
6.1. OpenGIS Functions
6.1.1. Management Functions
6.1.2. Geometry Relationship Functions
6.1.3. Geometry Processing Functions
6.1.4. Geometry Accessors
6.1.5. Geometry Constructors
6.2. Postgis Extensions
6.2.1. Management Functions
6.2.2. Operators
6.2.3. Measurement Functions
6.2.4. Geometry Outputs
6.2.5. Geometry Constructors
6.2.6. Geometry Editors
6.2.7. Misc
A. Release Notes
A.1. Release 1.0.2
A.1.1. Upgrading
A.1.2. Bug fixes
A.1.3. Improvements
A.2. Release 1.0.1
A.2.1. Upgrading
A.2.2. Library changes
A.2.3. Other changes/additions
A.3. Release 1.0.0
A.3.1. Upgrading
A.3.2. Library changes
A.3.3. Other changes/additions
A.4. Release 1.0.0RC6
A.4.1. Upgrading
A.4.2. Library changes
A.4.3. Scripts changes
A.4.4. Other changes
A.5. Release 1.0.0RC5
A.5.1. Upgrading
A.5.2. Library changes
A.5.3. Other changes
A.6. Release 1.0.0RC4
A.6.1. Upgrading
A.6.2. Library changes
A.6.3. Scripts changes
A.6.4. Other changes
A.7. Release 1.0.0RC3
A.7.1. Upgrading
A.7.2. Library changes
A.7.3. Scripts changes
A.7.4. JDBC changes
A.7.5. Other changes
A.8. Release 1.0.0RC2
A.8.1. Upgrading
A.8.2. Library changes
A.8.3. Scripts changes
A.8.4. Other changes
A.9. Release 1.0.0RC1
A.9.1. Upgrading
A.9.2. Changes