[geos-commits] r3680 - trunk/include/geos/algorithm
svn_geos at osgeo.org
svn_geos at osgeo.org
Fri Jun 22 08:44:17 PDT 2012
Author: strk
Date: 2012-06-22 08:44:17 -0700 (Fri, 22 Jun 2012)
New Revision: 3680
Modified:
trunk/include/geos/algorithm/CentroidArea.h
Log:
Add note about handling of degenerate polygons
Modified: trunk/include/geos/algorithm/CentroidArea.h
===================================================================
--- trunk/include/geos/algorithm/CentroidArea.h 2012-06-22 15:32:54 UTC (rev 3679)
+++ trunk/include/geos/algorithm/CentroidArea.h 2012-06-22 15:44:17 UTC (rev 3680)
@@ -49,6 +49,10 @@
* The algorithm has been extended to handle holes and multi-polygons.
* See <code>http://www.faqs.org/faqs/graphics/algorithms-faq/</code>
* for further details of the basic approach.
+ *
+ * The code has also be extended to handle degenerate (zero-area) polygons.
+ * In this case, the centroid of the line segments in the polygon
+ * will be returned.
*/
class GEOS_DLL CentroidArea {
More information about the geos-commits
mailing list