[Gdal-dev] CSV of Linestring

Frank Warmerdam warmerdam at pobox.com
Thu Nov 3 09:24:29 EST 2005


On 11/3/05, Jørn Vegard Røsnes <jorn at spacetec.no> wrote:
> 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)

Jørn,

As it turns out, the OGR CSV driver does not consider the file
to be a .csv file if it does not have at least two fields.  Try
adding an "ID" field or something.

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    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list