Skip to content
Permalink
Browse files

#9060: use QGis::fromUnitToUnitFactor in QgsWmsProvider

 in
  • Loading branch information
ahuarte47 committed Jan 14, 2014
1 parent 65f43a8 commit b662d1bee19750e25e74a865806777dee3b92cbd
Showing with 1 addition and 21 deletions.
  1. +1 −21 src/providers/wms/qgswmsprovider.cpp
@@ -2776,27 +2776,7 @@ void QgsWmsProvider::parseWMTSContents( QDomElement const &e )

s.wkScaleSet = n0.firstChildElement( "WellKnownScaleSet" ).text();

double metersPerUnit;
switch ( crs.mapUnits() )
{
case QGis::Meters:
metersPerUnit = 1.0;
break;

case QGis::Feet:
metersPerUnit = 0.3048;
break;

case QGis::Degrees:
metersPerUnit = 111319.49079327358;
break;

default:
case QGis::UnknownUnit:
QgsDebugMsg( "Unknown CRS units - assuming meters" );
metersPerUnit = 1.0;
break;
}
double metersPerUnit = QGis::fromUnitToUnitFactor( crs.mapUnits(), QGis::Meters );

s.crs = crs.authid();

0 comments on commit b662d1b

Please sign in to comment.
You can’t perform that action at this time.