[geos-devel] [GEOS] #676: WKT reader interprets M coordinate as Z
GEOS
geos-trac at osgeo.org
Sat Nov 30 00:04:00 PST 2013
#676: WKT reader interprets M coordinate as Z
------------------------+---------------------------------------------------
Reporter: mwtoews | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.5.0
Component: Default | Version: 3.4.2
Severity: Unassigned | Keywords:
------------------------+---------------------------------------------------
With an older-style WKT string with 3 dimensions (e.g., 'POINT (1 2 3)'),
the obvious interpretation is to map the dimensions: X, Y, Z.
However, with a newer-style WKT string with 3 dimensions, the data still
get mapped to dimensions: X, Y, Z. Even for 'POINT M(1 2 3)', which should
be interpreted by GEOS as 'POINT (1 2)', since there isn't any Z
dimension.
The inconsistency is pointed out by the WKB reader, which correctly reads
'POINT M(1 2 3)' as
0101000040000000000000F03F00000000000000400000000000000840 (from PostGIS)
which does not have a Z dimension, and is written by WKTReader correctly
as 'POINT (1 2)'.
--
Ticket URL: <http://trac.osgeo.org/geos/ticket/676>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list