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 caspervdw, 3 years ago

I just noticed that it is not only the empty points, but all 3D empty geometries that get serialized without the "Z".

comment:2 by pramsey, 3 years ago

Milestone: 3.9.23.9.3

comment:3 by lbartoletti, 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 dbaston, 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 dbaston, 17 months ago

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