Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
troopa's style
  • Loading branch information
lbartoletti committed Jun 5, 2019
1 parent d197fd5 commit a42e09f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/server/services/wms/qgswmsrendercontext.cpp
Expand Up @@ -656,12 +656,8 @@ QgsRectangle QgsWmsRenderContext::mapExtent() const
throw QgsBadRequestException( QgsServiceException::QGIS_InvalidParameterValue,
mParameters[QgsWmsParameter::BBOX] );
}
const double extentWidth = extent.width();
const double extentHeight = extent.height();
const int width = mapWidth();
const int height = mapHeight();
const double resolutionX = extentWidth / width;
const double resolutionY = extentHeight / height;
const double resolutionX = extent.width() / mapWidth();
const double resolutionY = extent.height() / mapHeight();
const int tBuffer = mFlags & UseTileBuffer ? tileBuffer() : 0;
const double xMin = extent.xMinimum() - tBuffer * resolutionX;
const double yMin = extent.yMinimum() - tBuffer * resolutionY;
Expand Down

0 comments on commit a42e09f

Please sign in to comment.