Ticket #532 (new enhancement)

Opened 13 months ago

Last modified 11 months ago

Extend GEOSGetCentroid for Z dimension

Reported by: mwtoews Owned by: geos-devel@…
Priority: major Milestone: 3.4.0
Component: Default Version: svn-trunk
Severity: Unassigned Keywords:
Cc:

Description

Extend GEOSGetCentroid to calculate the Z component of a centroid from 3D geometries.

Change History

Changed 13 months ago by mwtoews

Updating CentroidPoint.cpp and CentroidLine.cpp is straight-forward, and the results work with the C-API (via PostGIS). However, I'm stumped on CentroidArea.cpp, in particular  CentroidArea::area2. The linear rings would really need to be co-planar to have a true 3D areal feature (is this part of isValid()?).

Changed 11 months ago by strk

  • type changed from defect to enhancement

no, there's no co-planarity check in isValid. There's no support for real 3D, only 2.5D. Extension requests would be better directed at JTS.

Note: See TracTickets for help on using tickets.