Opened 3 years ago

Closed 3 years ago

#1088 closed defect (fixed)

Centroid and InteriorPoint of EMPTY return null

Reported by: mdavis Owned by: geos-devel@…
Priority: major Milestone: 3.10.0
Component: Default Version: 3.9.0
Severity: Unassigned Keywords:
Cc:

Description

Centroid and InteriorPoint of * EMPTY return null in the C++ API. They should return POINT EMPTY.

This is fixed in the C API, but the behaviour should be implemented at the C++ level.

Change History (4)

comment:1 by mdavis, 3 years ago

See also #560

comment:2 by mdavis, 3 years ago

There is an XML test for EMPTY, but the XMLTester has been patched to check for null and create an empty point! So that needs fixing too.

comment:4 by Paul Ramsey <pramsey@…>, 3 years ago

Resolution: fixed
Status: newclosed

In 02f9128/git:

Return POINT EMPTY when centroid called on EMPTY input (closes #1088)

Note: See TracTickets for help on using tickets.