Opened 3 years ago

Last modified 3 years ago

#1102 new defect

GEOSNearestPoints: returns mixed dimensions from 3D inputs

Reported by: Mike Taves Owned by: geos-devel@…
Priority: minor Milestone: 3.11.0
Component: Default Version: main
Severity: Unassigned Keywords:
Cc:

Description

See https://github.com/Toblerity/Shapely/pull/1006#issuecomment-787537048 for background

GEOSNearestPoints with GEOS <=3.9 returns only 2D geometries, regardless of inputs.

The current GEOS development snapshot may return mixed dimensions with 3D inputs. For instance, a PointZ and LineStringZ returns a PointZ and 2D Point object for nearest locations.

Is the expected result to maintain 2D-only geometries (i.e. GEOS<=3.9 behaviour)? Or should it be improved to interpolate the Z coordinate from the LineStringZ object?

Another case to consider is the nearest points between two PointZ objects. The current result is two PointZ objects.

Change History (1)

comment:1 by robe, 3 years ago

Milestone: 3.10.03.11.0

Retargeting in prep for GEOS 3.10.0 release

Note: See TracTickets for help on using tickets.