[Gdal-dev] ogr2ogr Unable to open datasource

Frank Warmerdam warmerdam at pobox.com
Tue Oct 31 14:36:41 EST 2006


Ryan Ollerenshaw wrote:

> ovf file:
> <OGRVRTDataSource>
>        <OGRVRTLayer  name="thick18">
>        <SrcDataSource>thick18</SrcDataSource>
>        <SrcLayer>E:\Ryan\solid_earth</SrcLayer>
>        <GeometryField encoding="PointFromColumns" x="long" y="lat"/>
>        <GeometryType>wkbPoint</GeometryType>
>        </OGRVRTLayer>
> </OGRVRTDataSource>

Ryan,

Normally the SrcDataSource would point to your csv file, and SrcLayer would
be the basename of your .csv file. So if you csv file was thick18.csv in
the E:\Ryan\solid_earth directory you would use:

<OGRVRTDataSource>
        <OGRVRTLayer  name="thick18">
         <SrcDataSource>E:\Ryan\solid_earth\thick18.csv</SrcDataSource>
         <SrcLayer>thick18</SrcLayer>
         <GeometryField encoding="PointFromColumns" x="long" y="lat"/>
         <GeometryType>wkbPoint</GeometryType>
         </OGRVRTLayer>
</OGRVRTDataSource>

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list