Skip to content

Commit 3e069c3

Browse files
committed
Fix full circle area calculation
1 parent 203f975 commit 3e069c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/geometry/qgscircularstringv2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ void QgsCircularStringV2::sumUpArea( double& sum ) const
879879
//segment is a full circle, p2 is the center point
880880
if ( p1 == p3 )
881881
{
882-
double r2 = QgsGeometryUtils::sqrDistance2D( p1, p2 ) / 2.0;
882+
double r2 = QgsGeometryUtils::sqrDistance2D( p1, p2 ) / 4.0;
883883
sum += M_PI * r2;
884884
continue;
885885
}

0 commit comments

Comments
 (0)