Skip to content
Permalink
Browse files

fix windows build

  • Loading branch information
jef-n committed Sep 14, 2016
1 parent 3f3e206 commit c23e96d3a63df65173452dc2d91fc2562d2d02f7
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/providers/wms/qgswmsprovider.cpp
@@ -506,7 +506,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 ) );
}

@@ -1190,10 +1190,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 c23e96d

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