Skip to content

Commit

Permalink
Fix detection of CRS meter units
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Nov 8, 2011
1 parent 8e2e654 commit 62ed7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgscoordinatereferencesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ void QgsCoordinateReferenceSystem::setMapUnits()

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

if ( unit == "Meter" )
if ( doubleNear( toMeter, 1.0 ) ) //Unit name for meters would be "metre"
mMapUnits = QGis::Meters;
else if ( unit == "Foot" )
mMapUnits = QGis::Feet;
Expand Down

0 comments on commit 62ed7ef

Please sign in to comment.