Opened 11 years ago

Last modified 3 years ago

#532 new enhancement

Extend GEOSGetCentroid for Z dimension

Reported by: Mike Taves Owned by: geos-devel@…
Priority: major Milestone: GEOS Fund Me
Component: Default Version: main
Severity: Unassigned Keywords:


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

Change History (7)

comment:1 by Mike Taves, 11 years ago

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()?).

comment:2 by strk, 11 years ago

Type: defectenhancement

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.

comment:3 by robe, 10 years ago


comment:4 by robe, 8 years ago


comment:5 by strk, 6 years ago


Ticket retargeted after milestone closed

comment:6 by robe, 5 years ago


comment:7 by pramsey, 3 years ago

Milestone: 3.8.0GEOS Fund Me
Note: See TracTickets for help on using tickets.