[Gdal-dev] ogr2ogr Unable to open datasource
Ryan Ollerenshaw
ollerery at engr.orst.edu
Tue Oct 31 13:44:21 EST 2006
>
>
> Because as far as OGR knows the csv file is non-spatial, so when it
> creates
> the "shapefile" it just creates the .dbf file and no spatial files.
>
> If you want to treat the first two columns as a point location you
> need to
> follow extra steps (ie. using an OGR VRT file) to turn them into a
> spatial
> location.
>
> Best regards,
Thank you for the help but the documentation for using an OGR VRT file
does not seem to be clear. I created a ovf file (see below) and ran
# ogr2ogr -f "ESRI Shapefile" thick18.shp thick18.cvs
but still no change only a dbf file is created. I do not see in the VRT
documentation how to use the ovf file.
Resources I have found:
http://gdal.maptools.org/ogr/drv_vrt.html
http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData
-Ryan
More information about the Gdal-dev
mailing list