CSV/VRT with WKT LINESTRING() Problem

Frank Warmerdam warmerdam at POBOX.COM
Thu Dec 8 15:09:53 PST 2005


On 12/8/05, Adam Hill <adam.hill at gmail.com> wrote:
> OGRFeature(bb):2
>   id (String) = 1
>   api (String) = 60816400980
>   proj (String) = 316
>   wkt (String) = LINESTRING(1288565.0 10549215.0,1288565.0
> 10549215.0,1288565.0.... (more points omitted)
>
> When I try and render it via MS (CGI or shp2img) I get a large colored
> rectangle (IMAGECOLOR). I have overlayed a GRID to ensure I am seeing
> the correct extents.
>
> Two questons I also have from looking at the scarce examples is
> 1) Does the LAYER NAME in the .map file need to match the
> <OGRVRTLayer name="xxxx">

No, but the value in the DATA keyword of your .map needs
to match the name of the layer in the ovf file.

> 2) Do I need a <GeometryType>wktLineString</GeometryType> in the VRT?
> The only values that are mentioned in the docs are wkbXXX types.

These names were derived from the WKB portion of the simple
features specification, but apply equally whether the actual
encoding is WKT, WKB or something else.  So, no, you should
be using wkbLineString.

I also tried your dataset and it worked fine for me.  The
geometry will continue to appear as an attribute but should
also be decoded as a geometry.  I assume this is what you
also saw?

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