Skip to content

Commit 4b40c53

Browse files
committedAug 18, 2012
fix #5828
1 parent 90e7baa commit 4b40c53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/providers/wms/qgswmsprovider.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,15 +2430,14 @@ void QgsWmsProvider::parseTileSetProfile( QDomElement const &e )
24302430
l.setLinks.insert( ms.identifier, sl );
24312431
mTileLayersSupported.append( l );
24322432

2433-
m.topLeft = QgsPoint( l.boundingBox.box.xMinimum(), l.boundingBox.box.yMaximum() );
2434-
24352433
int i = 0;
24362434
foreach ( QString rS, resolutions )
24372435
{
24382436
double r = rS.toDouble();
24392437
m.identifier = QString::number( i );
24402438
m.matrixWidth = ceil( l.boundingBox.box.width() / m.tileWidth / r );
24412439
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 );
24422441
ms.tileMatrices.insert( r, m );
24432442
i++;
24442443
}

0 commit comments

Comments
 (0)
Please sign in to comment.