Skip to content
Browse files
Fix incorrectly reported area in identify tool (partly fixes #9060)
Occurred with projected layer CRS, non-projected map CRS, planimetric measuring.
It was assumed that units of the measurement were in map CRS.
  • Loading branch information
wonder-sk committed Feb 19, 2014
1 parent 988099b commit 7ea3390950be8232a9505438c428f5f0933ab1fb
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgsdistancearea.cpp
@@ -991,6 +991,12 @@ void QgsDistanceArea::convertMeasurement( double &measure, QGis::UnitType &measu
measureUnits = QGis::Meters;
QgsDebugMsg( "We're measuring on an ellipsoid or using projections, the system is returning meters" );
else if ( mEllipsoidalMode && mEllipsoid == GEO_NONE )
// Measuring in plane within the source CRS. Force its map units
measureUnits = mCoordTransform->sourceCrs().mapUnits();
QgsDebugMsg( "We're measuing on planimetric distance/area on given CRS, measured value is in CRS units" );

// Gets the conversion factor between the specified units
double factorUnits = QGis::fromUnitToUnitFactor( measureUnits, displayUnits );

0 comments on commit 7ea3390

Please sign in to comment.