Opened 10 years ago

Closed 20 months ago

#676 closed defect (fixed)

WKT reader interprets M coordinate as Z

Reported by: Mike Taves Owned by: dbaston
Priority: major Milestone: 3.11.0
Component: Default Version: 3.4.2
Severity: Unassigned Keywords:
Cc:

Description

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)'.

Change History (5)

comment:1 by robe, 9 years ago

Milestone: 3.5.03.6.0

comment:2 by strk, 8 years ago

Milestone: 3.6.03.7.0

Ticket retargeted after milestone closed

comment:3 by robe, 6 years ago

Milestone: 3.7.0GEOS Fund Me

comment:4 by dbaston, 20 months ago

Milestone: GEOS Fund Me3.11.0
Owner: changed from geos-devel@… to dbaston

comment:5 by dbaston, 20 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.