Skip to content

Commit

Permalink
fix #5828
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Aug 18, 2012
1 parent 90e7baa commit 4b40c53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -2430,15 +2430,14 @@ void QgsWmsProvider::parseTileSetProfile( QDomElement const &e )
l.setLinks.insert( ms.identifier, sl );
mTileLayersSupported.append( l );

m.topLeft = QgsPoint( l.boundingBox.box.xMinimum(), l.boundingBox.box.yMaximum() );

int i = 0;
foreach ( QString rS, resolutions )
{
double r = rS.toDouble();
m.identifier = QString::number( i );
m.matrixWidth = ceil( l.boundingBox.box.width() / m.tileWidth / r );
m.matrixHeight = ceil( l.boundingBox.box.height() / m.tileHeight / r );
m.topLeft = QgsPoint( l.boundingBox.box.xMinimum(), l.boundingBox.box.yMinimum() + m.matrixHeight * m.tileHeight * r );
ms.tileMatrices.insert( r, m );
i++;
}
Expand Down

0 comments on commit 4b40c53

Please sign in to comment.