Opened 10 years ago
Closed 13 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 , 8 years ago
Milestone: | 3.5.0 → 3.6.0 |
---|
comment:2 by , 7 years ago
Milestone: | 3.6.0 → 3.7.0 |
---|
comment:3 by , 5 years ago
Milestone: | 3.7.0 → GEOS Fund Me |
---|
comment:4 by , 13 months ago
Milestone: | GEOS Fund Me → 3.11.0 |
---|---|
Owner: | changed from | to
comment:5 by , 13 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in main
with a7dbef87e85cdae8fb5930724a9130d2de90140d/git
Ticket retargeted after milestone closed