Skip to content

Commit 62ed7ef

Browse files
committed
Fix detection of CRS meter units
1 parent 8e2e654 commit 62ed7ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/qgscoordinatereferencesystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ void QgsCoordinateReferenceSystem::setMapUnits()
839839

840840
QgsDebugMsg( "Projection has linear units of " + unit );
841841

842-
if ( unit == "Meter" )
842+
if ( doubleNear( toMeter, 1.0 ) ) //Unit name for meters would be "metre"
843843
mMapUnits = QGis::Meters;
844844
else if ( unit == "Foot" )
845845
mMapUnits = QGis::Feet;

0 commit comments

Comments
 (0)