Skip to content

Commit a8ce8af

Browse files
mhugentmach0
authored andcommittedNov 23, 2011
Fix detection of CRS meter units
1 parent d00fc4a commit a8ce8af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgscoordinatereferencesystem.cpp

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

836836
QgsDebugMsg( "Projection has linear units of " + unit );
837837

838-
if ( unit == "Meter" )
838+
if ( doubleNear( toMeter, 1.0 ) ) //Unit name for meters would be "metre"
839839
mMapUnits = QGis::Meters;
840840
else if ( unit == "Foot" )
841841
mMapUnits = QGis::Feet;

0 commit comments

Comments
 (0)
Please sign in to comment.