Opened 3 years ago
Closed 17 months ago
#1129 closed defect (fixed)
WKT serialization of 3D empty point is 2D
Reported by: | caspervdw | Owned by: | strk |
---|---|---|---|
Priority: | minor | Milestone: | 3.9.3 |
Component: | Core | Version: | 3.9.0 |
Severity: | Annoyance | Keywords: | |
Cc: |
Description
Since GEOS 3.9, 3D empty points are serialised correctly to their 3D WKB representation.
However the WKT serialization still gives “POINT EMPTY” instead of the expected “POINT Z EMPTY. The information about the dimensionality is lost in WKT serialization.
Change History (5)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
Milestone: | 3.9.2 → 3.9.3 |
---|
comment:3 by , 22 months ago
I can confirm, following my bug reports
The geometry type is read at WKTReader::readGeometryTaggedText, but on dedicated geometry method, the Z/M extension is ignored.
comment:4 by , 22 months ago
This is behavior is deliberate (https://trac.osgeo.org/geos/ticket/348#comment:1) but I don't know what reasoning was behind it.
comment:5 by , 17 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I just noticed that it is not only the empty points, but all 3D empty geometries that get serialized without the "Z".