[Mapserver-west] Found the answer

Dean C. Mikkelsen dcmikkelsen at shaw.ca
Thu Apr 21 01:56:43 EDT 2005


Hi all!

I think I solved my question. I am working possibly with a non-spatial
database - originally Oracle 8. The hope is to migrate to PostGIS or
MySQL. I have experience with MySQL.

It appears as though I have to use the Virtual File Format found with
the OGR. The link is here:

http://www.remotesensing.org/gdal/ogr/drv_vrt.html

In my case, I would have code such as:
<OGRVRTDataSource>

    <OGRVRTLayer name="lease_polygons">
 
<SrcDataSource>ODBC:gulf_of_mexico,lease_polygons</SrcDataSource> 
 	<SrcLayer>lease_polygons</SrcLayer> 
	<GeometryType> wkbPolygon</GeometryType> 
        <LayerSRS>WGS84</LayerSRS>
	<GeometryField encoding="PointFromColumns" x="x" y="y"/> 
    </OGRVRTLayer>

</OGRVRTDataSource>

The answer was right in front of me, just a little digging, eh?

Cheers,
Dean






More information about the Mapserver-west mailing list