[geos-devel] Re: [GEOS] #532: Extend GEOSGetCentroid for Z dimension

GEOS geos-trac at osgeo.org
Thu Apr 19 09:03:44 EDT 2012


#532: Extend GEOSGetCentroid for Z dimension
------------------------+---------------------------------------------------
 Reporter:  mwtoews     |       Owner:  geos-devel@…              
     Type:  defect      |      Status:  new                       
 Priority:  major       |   Milestone:  3.4.0                     
Component:  Default     |     Version:  svn-trunk                 
 Severity:  Unassigned  |    Keywords:                            
------------------------+---------------------------------------------------

Comment(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
 [http://trac.osgeo.org/geos/browser/trunk/src/algorithm/CentroidArea.cpp#L144
 CentroidArea::area2]. The linear rings would really need to be co-planar
 to have a true 3D areal feature (is this part of `isValid()`?).

-- 
Ticket URL: <http://trac.osgeo.org/geos/ticket/532#comment:1>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).


More information about the geos-devel mailing list