Map file example using OGR support

 < Day Day Up > 

Oracle Spatial Database

  • 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.

     LAYER       ...       CONNECTION "OCI:user/pwd@service"       CONNECTIONTYPE OGR       DATA "Tablename"       ...     END 

Example:

     LAYER        ...        NAME "Ottawa"        CONNECTIONTYPE OGR        CONNECTION "OCI:jeff/blah@ora_cities"        DATA "CITIES"        TYPE POINT        ...     END 

Map file example using native support

     LAYER        ...        CONNECTIONTYPE oraclespatial        CONNECTION "user/pwd@service"        DATA "GEOMETRY FROM tablename"        ...     END 

     < Day Day Up > 


    Web Mapping
    Web Mapping Illustrated: Using Open Source GIS Toolkits
    ISBN: 0596008651
    EAN: 2147483647
    Year: 2005
    Pages: 138

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net