Skip to content
Permalink
Browse files

fix windows build

(cherry picked from commit c23e96d)
  • Loading branch information
jef-n committed Sep 16, 2016
1 parent f5b657d commit 11caf0a6a0ea7a053f40d55f2c1d9f2da6111c47
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/providers/wms/qgswmsprovider.cpp
@@ -505,7 +505,7 @@ QImage *QgsWmsProvider::draw( QgsRectangle const &viewExtent, int pixelWidth, in
static bool _fuzzyContainsRect( const QRectF& r1, const QRectF& r2 )
{
double significantDigits = log10( qMax( r1.width(), r1.height() ) );
double epsilon = pow( 10, ( significantDigits - 5 ) ); // floats have 6-9 significant digits
double epsilon = pow( 10.0, significantDigits - 5 ); // floats have 6-9 significant digits
return r1.contains( r2.adjusted( epsilon, epsilon, -epsilon, -epsilon ) );
}

@@ -1188,10 +1188,8 @@ void QgsWmsProvider::setupXyzCapabilities( const QString &uri )
QgsWmtsTileMatrix tm;
tm.identifier = QString::number( zoom );
tm.topLeft = topLeft;
tm.tileWidth = 256;
tm.tileHeight = 256;
tm.matrixWidth = pow( 2, zoom );
tm.matrixHeight = pow( 2, zoom );
tm.tileWidth = tm.tileHeight = 256;
tm.matrixWidth = tm.matrixHeight = 1 << zoom;
tm.tres = xspan / ( tm.tileWidth * tm.matrixWidth );

mCaps.mTileMatrixSets[tms.identifier].tileMatrices[tm.tres] = tm;

0 comments on commit 11caf0a

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