Name
Oracle Spatial Database
Synopsis
MapServer can support Oracle Spatial through OGR.
OGR must be compiled with Oracle Spatial support and
MapServer must be compiled to use OGR.
MapServer also supports Oracle Spatial natively.
For more information about Oracle Spatial and MapServer see
the MapServer documentation and reference pages at http://mapserver.gis.umn.edu/doc.html.
Map file example using OGR support
LAYER
...
CONNECTION "OCI:user/pwd@service"
CONNECTIONTYPE OGR
DATA "Tablename"
...
ENDExample:
LAYER
...
NAME "Ottawa"
CONNECTIONTYPE OGR
CONNECTION "OCI:jeff/blah@ora_cities"
DATA "CITIES"
TYPE POINT
...
ENDMap file example using native support
LAYER
...
CONNECTIONTYPE oraclespatial
CONNECTION "user/pwd@service"
DATA "GEOMETRY FROM tablename"
...
END