Skip to content
Permalink
Browse files

Fix WMS 1.3. compliance: distort image if width/height ratio of bbox …

…is different to WIDTH/HEIGHT of requested image

Not decrease but increase image
  • Loading branch information
rldhont committed Dec 13, 2016
1 parent f48f90e commit 9f2657414b1d258ac54d68cd99a5a100c78aeb4b
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/server/qgswmsserver.cpp
@@ -2012,13 +2012,13 @@ QImage* QgsWmsServer::createImage( int width, int height, bool useBbox ) const
{
if ( mapWidthHeightRatio >= imageWidthHeightRatio )
{
//decrease image height
height = width / mapWidthHeightRatio;
//increase image height
height = width * mapWidthHeightRatio;
}
else
{
//decrease image width
width = height * mapWidthHeightRatio;
//increase image width
width = height / mapWidthHeightRatio;
}
}
}

0 comments on commit 9f26574

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