[Gdal-dev] ogr2ogr Unable to open datasource

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Oct 31 12:49:00 EST 2006


AFAIK, in order to get a shapefile with the actual geometry, you would 
need to use the VRT driver on the CSV file:

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

Best regards,
Bart

Ryan Ollerenshaw schreef:
> 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 Ollerenshaw schreef:
>>> I keep getting the following error:
>>>
>>> $ ogr2ogr -f "ESRI Shapefile" thick18.shp thick18_test.cvs
>>> FAILURE:
>>> Unable to open datasource `thick18_test.cvs' with the following 
>>> drivers.
>>>  -> ESRI Shapefile
>>>  -> MapInfo File
>>>  -> UK .NTF
>>>  -> SDTS
>>>  -> TIGER
>>>  -> S57
>>>  -> DGN
>>>  -> VRT
>>>  -> AVCBin
>>>  -> REC
>>>  -> Memory
>>>  -> CSV
>>>  -> GML
>>>  -> PostgreSQL
>>>
>>>
>>> My CSV file looks like this:
>>> -180,90.00,0.00,4.84
>>> -179,90.00,0.00,4.84
>>> -178,90.00,0.00,4.84
>>> -177,90.00,0.00,4.84
>>> -176,90.00,0.00,4.84
>>> -175,90.00,0.00,4.84
>>>
>>> I am not sure why i am getting an unable to open datasource, any 
>>> ideas on what i could be doing wrong would be much appreciated.
>>>
>>>
>>
>>
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>
>


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl




More information about the Gdal-dev mailing list