[QGIS Commit] r10391 - branches/analysis_branch/python/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Mar 21 17:33:39 EDT 2009


Author: cfarmer
Date: 2009-03-21 17:33:39 -0400 (Sat, 21 Mar 2009)
New Revision: 10391

Modified:
   branches/analysis_branch/python/core/qgsgeometry.sip
Log:
forgot the sip file?!


Modified: branches/analysis_branch/python/core/qgsgeometry.sip
===================================================================
--- branches/analysis_branch/python/core/qgsgeometry.sip	2009-03-21 21:32:54 UTC (rev 10390)
+++ branches/analysis_branch/python/core/qgsgeometry.sip	2009-03-21 21:33:39 UTC (rev 10391)
@@ -226,6 +226,11 @@
 
     /** Returns a simplified version of this geometry using a specified tolerance value */
     QgsGeometry* simplify(double tolerance) /Factory/;
+    
+    /** Returns the center of mass of a geometry
+    * @note for line based geometries, the center point of the line is returned,
+    * and for point based geometries, the point itself is returned */
+    QgsGeometry* centroid() /Factory/;
 
     /** Returns the smallest convex polygon that contains all the points in the geometry. */
     QgsGeometry* convexHull() /Factory/;



More information about the QGIS-commit mailing list