WKT reader interprets M coordinate as Z
|Reported by:||Mike Taves||Owned by:||dbaston|
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)'.