[Gdal-dev] CSV of Linestring
Jørn Vegard Røsnes
jorn at spacetec.no
Thu Nov 3 08:16:07 EST 2005
Hi all,
I have no luck converting a CSV file of Linestrings to a shapefile.
Could someone give me some clues?
This is the CSV:
coor
LINESTRING (-233950.35 6518319.86,-213912.58 6338485.11)
LINESTRING (-222837.63 6329611.25,-222677.18 6329330.43)
LINESTRING (-222611.28 6329508.51,-222507.84 6329300.95)
This is the VRT:
<OGRVRTDataSource>
<OGRVRTLayer name="internationals">
<SrcDataSource
relativeToVRT="0">/path_to/international_test.csv</SrcDataSource>
<SrcLayer>international_test</SrcLayer>
<GeometryType>wkbLineString</GeometryType>
<GeometryField encoding="WKT" field="coor"/>
<LayerSRS>epsg:32633</LayerSRS>
</OGRVRTLayer>
</OGRVRTDataSource>
Error:
~/FWTools/bin_safe/ogr2ogr international international_test.vrt
ERROR 1: Failed to open datasource
`/home/jorn/ogr_trials/international_test.csv'.
FAILURE:
Unable to open datasource `international_test.vrt' with the following drivers.
...
-> CSV
...
I'm using FWTools 0.9.9.
Thanks
Best Regards
Joern Vegard Roesnes
More information about the Gdal-dev
mailing list