Skip to content

Commit 449a4a8

Browse files
mhugentnyalldawson
authored andcommitted
Change comment for QgsCurveV2::sumUpArea
(forward port from 1c02dc7)
1 parent ba7cc0f commit 449a4a8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

python/core/geometry/qgscurvev2.sip

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ class QgsCurveV2: public QgsAbstractGeometryV2
5454
*/
5555
virtual int numPoints() const = 0;
5656

57-
/** Calculates the area of the curve. Derived classes should override this
58-
* to return the correct area of the curve.
57+
/** Sums up the area of the curve by iterating over the vertices (shoelace formula).
5958
*/
6059
virtual void sumUpArea( double& sum ) const = 0;
6160

src/core/geometry/qgscurvev2.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ class CORE_EXPORT QgsCurveV2: public QgsAbstractGeometryV2
8181
*/
8282
virtual int numPoints() const = 0;
8383

84-
/** Calculates the area of the curve. Derived classes should override this
85-
* to return the correct area of the curve.
84+
/** Sums up the area of the curve by iterating over the vertices (shoelace formula).
8685
*/
8786
virtual void sumUpArea( double& sum ) const = 0;
8887

0 commit comments

Comments
 (0)