CSV for LineString

Frank Warmerdam warmerdam at POBOX.COM
Mon Oct 24 13:39:36 EDT 2005


On 10/24/05, Jørn Vegard Røsnes <jorn at spacetec.no> wrote:
> Hi,
>
> does anyone knows how a comma separated value (CSV) file looks for LineString
> coordinates, if it shall be accepted by ogr2ogr with CSV-driver and
> VRT-driver?
>
> I've tried the following:
>
> CSV file:
> coor
> (-233950.35 6518319.86, -213912.58 6338485.11, -222473.01 6329200.33)
> (-222837.63 6329611.25, -222677.18 6329330.43, -222611.28 6329508.51,
> -222507.84 6329300.95)

Jem,

A Well Known Text encoding of a linestring would look like this:

  LINESTRING (1302459.25 234199.6875,1302617.25 234196.4375)

It should be possible to include this in a .csv file to get proper
line handling via .VRT.

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 mapserver-users mailing list