[Gdal-dev] ogr2ogr Unable to open datasource

Mateusz Loskot mateusz at loskot.net
Tue Oct 31 17:22:25 EST 2006

Ryan Ollerenshaw wrote:
>> 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


There was similar problem discussed a few a week ago.
Here is explanation of how to work with CSV through VRT:


Mateusz Loskot

More information about the Gdal-dev mailing list