[Gdal-dev] ogr2ogr Unable to open datasource

Frank Warmerdam warmerdam at pobox.com
Tue Oct 31 13:03:56 EST 2006


Ryan Ollerenshaw wrote:
> Bart van den Eijnden (OSGIS) wrote:
>> Your filename extension is cvs, are you sure it should not be csv?
>>
>> Best regards,
>> Bart
>>
> Yes it did just appear to be a typo,But i am running into a new problem, 
> the command:
> ogr2ogr -f "ESRI Shapefile" thick18.shp thick18_test.csv
> only seems to create a dbf file, why is there no shp file created?

Ryan,

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,
-- 
---------------------------------------+--------------------------------------
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