Skip to content
Permalink
Browse files

fix #5828

  • Loading branch information
jef-n committed Aug 18, 2012
1 parent 90e7baa commit 4b40c53a4538e48d329f767e777319293e14c51c
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/providers/wms/qgswmsprovider.cpp
@@ -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++;
}

0 comments on commit 4b40c53

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