File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -2430,15 +2430,14 @@ void QgsWmsProvider::parseTileSetProfile( QDomElement const &e )
2430
2430
l.setLinks .insert ( ms.identifier , sl );
2431
2431
mTileLayersSupported .append ( l );
2432
2432
2433
- m.topLeft = QgsPoint ( l.boundingBox .box .xMinimum (), l.boundingBox .box .yMaximum () );
2434
-
2435
2433
int i = 0 ;
2436
2434
foreach ( QString rS, resolutions )
2437
2435
{
2438
2436
double r = rS.toDouble ();
2439
2437
m.identifier = QString::number ( i );
2440
2438
m.matrixWidth = ceil ( l.boundingBox .box .width () / m.tileWidth / r );
2441
2439
m.matrixHeight = ceil ( l.boundingBox .box .height () / m.tileHeight / r );
2440
+ m.topLeft = QgsPoint ( l.boundingBox .box .xMinimum (), l.boundingBox .box .yMinimum () + m.matrixHeight * m.tileHeight * r );
2442
2441
ms.tileMatrices .insert ( r, m );
2443
2442
i++;
2444
2443
}
You can’t perform that action at this time.
0 commit comments