[Gdal-dev] Multilinestrings with X,Y,Z, and M values in PostGIS

Frank Warmerdam warmerdam at pobox.com
Thu Jan 12 15:49:35 EST 2006


On 1/12/06, Ari Jolma <ari.jolma at tkk.fi> wrote:
> I put some shapefiles to PostGIS database with shp2pgsql. These
> shapefiles are 3D Multilinestrings with M values. When I try to read
> this data from the DB with OGR, it fails because it finds 4 values per
> point in the WKT, which is one too many, i.e. the WKT is for example
> "MULTILINESTRING((24.8848574304277 60.4469928011955 59.9400000000005
> 0,24.8844676719297 60.4470157676103 60.5599999999995
> 21.6100000000006,24.8840204135758 60.4470586829545 61.1800000000003
> 46.69000000"...
>
> Am I doing something wrong or what should I correct / or which software
> is to blame? Am I clear enough here?

Ari,

I didn't realize PostGIS supported XYZM data.  I would
appreciate it if you could file a bug on this.  At some point
I will support measures in OGR but in the meantime I
should at least modify the WKT parser to discard the
measures.

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