concect postgis

15
How to connect Postgis with GIS Software Mr. chaipat Nengcomma

Upload: thailand

Post on 11-May-2015

3.972 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Concect postgis

How to connect Postgis with GIS Software

Mr. chaipat Nengcomma

Page 2: Concect postgis

ESRI ArcGIS

Page 3: Concect postgis

ArcGIS System

ArcGIS 9.3 Support for PostgreSQL (Open Source DBMS)—Enterprise geodatabases can now be implemented on PostgreSQL with full support of the geodatabase data model. Vector data can be stored in either the ESRI for PostgreSQL spatial type or the PostGIS (Open Source) spatial type

Page 4: Concect postgis

ArcGIS System

Connect Postgis Table with ArcSDE for Arcgis system. See more information and technique at http://geobabble.wordpress.com/

Page 5: Concect postgis

Map Guide

Page 6: Concect postgis

Autodesk System : Mapguide,Autocad

MapGuide was leveraging the hard work of other open-source projects. MapGuide uses well-known components such as Proj.4, GEOS, GDAL and DBXML. It also uses PHP extensively, and it runs on Linux and Microsoft Windows platforms. We can connect Postgis table with FDO

Page 7: Concect postgis

Autodesk System : Mapguide,Autocad

Basic step for connect postgis with FDO is

1. Download FDO for Postgis from http://download.osgeo.org/fdo/3.4.1/binarie

2. Copy file PostGISProvider.dll to C:\Program Files\MapGuide2.0.0\FDO\bin\

3. Create a provider file like providers.xml for postgis driver

Page 8: Concect postgis

Autodesk System : Mapguide,Autocad

<FeatureProvider>

<Name>OSGeo.PostGIS.3.4</Name>

<DisplayName> OSGeo FDO Provider for PostGIS</DisplayName>

<Description>FDO Provider for PostGIS</Description>

<IsManaged>False</IsManaged>

<Version>3.4.0.0</Version>

<FeatureDataObjectsVersion>3.4.0.0</FeatureDataObjectsVersion>

<LibraryPath>.\PostGISProvider.dll</LibraryPath>

</FeatureProvider>

http://trac.osgeo.org/fdo/wiki/FdoPostGISNotes

Page 9: Concect postgis

UMN Map Server

Page 10: Concect postgis

UMN MapServer

PostGIS is supported directly by MapServer and must be compiled into MapServer to work.

The CONNECTIONTYPE parameter must be set to POSTGIS.

Page 11: Concect postgis

UMN MapServer

The CONNECTION parameter is used to specify the parameters to connect to the database. CONNECTION parameters can be in any order. Most are optional. dbname is required. user is required. host defaults to localhost, port defaults to 5432 (the standard port for PostgreSQL).

Page 12: Concect postgis

UMN MapServer

The DATA parameter is used to specify the data used to draw the map. The form of DATA is “[geometry_column] from [table_name|sql_subquery] using unique [unique_key] using srid=[spatial_reference_id]”. The “using unique” and “using srid=” clauses are optional, but using them improves performance.

Page 13: Concect postgis

UMN MapServer

LAYER NAME province STATUS ONTYPE POLYGON# Define Layer TypeCONNECTIONTYPE POSTGIS# Define Connection InformationCONNECTION "host=localhost dbname=training user=pk"# Set Geometry Colum DATA "the_geom FROM province" CLASS # Set Legend and Color of Map ... ENDEND

Page 14: Concect postgis

GeoServer

Page 15: Concect postgis

Geoserver

Geoserver is open source map service software base on Java technology , That support Postgis spatial database . We can connect with spatial table like this picture