Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
6Activity
0 of .
Results for:
No results containing your search query
P. 1
Post Gis

Post Gis

Ratings: (0)|Views: 120|Likes:
Published by api-3833258
Post GIS Manual
Post GIS Manual

More info:

Published by: api-3833258 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/20/2014

pdf

text

original

PostGIS Manual
PostGIS Manual

PostGIS is an extension to the PostgreSQL object-relational database system which allows GIS (Geographic Informa- tion 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.1. Credits................................................................................. 1 1.2. More Information....................................................................... 1

2. Installation.................................................................................... 3
2.1. Requirements........................................................................... 3
2.2. PostGIS................................................................................ 3
2.2.1. Upgrading....................................................................... 5

2.2.2. Common Problems............................................................... 6 2.3. JDBC.................................................................................. 6 2.4. Loader/Dumper......................................................................... 7

3. Frequently Asked Questions..................................................................... 8
4. Using PostGIS................................................................................ 11
4.1. GIS Objects........................................................................... 11
4.1.1. OpenGIS WKB and WKT....................................................... 11
4.1.2. PostGIS EWKB, EWKT and Canonical Forms..................................... 12
4.2. Using OpenGIS Standards............................................................... 14
4.2.1. The SPATIAL_REF_SYS Table.................................................. 14
4.2.2. The GEOMETRY_COLUMNS Table............................................. 15
4.2.3. Creating a Spatial Table.......................................................... 16
4.2.4. Ensuring OpenGIS compliancy of geometries...................................... 17
4.3. Loading GIS Data...................................................................... 18
4.3.1. Using SQL..................................................................... 18
4.3.2. Using the Loader................................................................ 18
4.4. Retrieving GIS Data.................................................................... 19
4.4.1. Using SQL..................................................................... 19
4.4.2. Using the Dumper............................................................... 21
4.5. Building Indexes....................................................................... 22
4.5.1. GiST Indexes................................................................... 22
4.5.2. Using Indexes.................................................................. 23
4.6. Complex Queries....................................................................... 24
4.6.1. Taking Advantage of Indexes..................................................... 24
4.6.2. Examples of Spatial SQL........................................................ 24
4.7. Using Mapserver....................................................................... 26
4.7.1. Basic Usage.................................................................... 27
4.7.2. Frequently Asked Questions...................................................... 28
4.7.3. Advanced Usage................................................................ 29

4.7.4. Examples...................................................................... 30

4.8. Java Clients (JDBC).................................................................... 32
4.9. C Clients (libpq)....................................................................... 34
4.9.1. Text Cursors.................................................................... 34
4.9.2. Binary Cursors.................................................................. 34
5. Performance tips.............................................................................. 35

5.1. Small tables of large geometries......................................................... 35 5.1.1. Problem description............................................................. 35 5.1.2. Workarounds................................................................... 35

5.2. CLUSTERing on geometry indices....................................................... 36

5.3. Avoiding dimension conversion.......................................................... 36
6. PostGIS Reference............................................................................ 37
6.1. OpenGIS Functions.................................................................... 37
6.1.1. Management Functions.......................................................... 37
6.1.2. Geometry Relationship Functions................................................. 37
6.1.3. Geometry Processing Functions................................................... 40

iii

Activity (6)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Mahdi Rahimi liked this
maneesha100 liked this
Imam Khoiri liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->