Skip to content
Permalink
Browse files

wms provider: fix WMTS bounding box calculation for crs with inverted…

… axis
  • Loading branch information
jef-n committed Feb 25, 2014
1 parent 07516fc commit 6b6e5eb97a9c4221b95f0357c5ee25350e765e11
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/providers/wms/qgswmscapabilities.cpp
@@ -1404,8 +1404,18 @@ void QgsWmsCapabilities::parseWMTSContents( QDomElement const &e )
QgsCoordinateReferenceSystem crs;
crs.createFromOgcWmsCrs( bb.crs );
if ( crs.isValid() )
{
bb.crs = crs.authid();
l.boundingBoxes << bb;

bool invert = !mParserSettings.ignoreAxisOrientation && crs.axisInverted();
if ( mParserSettings.invertAxisOrientation )
invert = !invert;

if ( invert )
bb.box.invert();

l.boundingBoxes << bb;
}
}
}
}

0 comments on commit 6b6e5eb

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