Skip to content

Commit

Permalink
Fix full circle area calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 27, 2016
1 parent 203f975 commit 3e069c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgscircularstringv2.cpp
Expand Up @@ -879,7 +879,7 @@ void QgsCircularStringV2::sumUpArea( double& sum ) const
//segment is a full circle, p2 is the center point
if ( p1 == p3 )
{
double r2 = QgsGeometryUtils::sqrDistance2D( p1, p2 ) / 2.0;
double r2 = QgsGeometryUtils::sqrDistance2D( p1, p2 ) / 4.0;
sum += M_PI * r2;
continue;
}
Expand Down

0 comments on commit 3e069c3

Please sign in to comment.