Skip to content

Commit 6b6e5eb

Browse files
committedFeb 25, 2014
wms provider: fix WMTS bounding box calculation for crs with inverted axis
1 parent 07516fc commit 6b6e5eb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
 

‎src/providers/wms/qgswmscapabilities.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,8 +1404,18 @@ void QgsWmsCapabilities::parseWMTSContents( QDomElement const &e )
14041404
QgsCoordinateReferenceSystem crs;
14051405
crs.createFromOgcWmsCrs( bb.crs );
14061406
if ( crs.isValid() )
1407+
{
14071408
bb.crs = crs.authid();
1408-
l.boundingBoxes << bb;
1409+
1410+
bool invert = !mParserSettings.ignoreAxisOrientation && crs.axisInverted();
1411+
if ( mParserSettings.invertAxisOrientation )
1412+
invert = !invert;
1413+
1414+
if ( invert )
1415+
bb.box.invert();
1416+
1417+
l.boundingBoxes << bb;
1418+
}
14091419
}
14101420
}
14111421
}

0 commit comments

Comments
 (0)