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 7e40fb4 commit 903e8cf41ff6f313a6847ead068a8a4c919032f4
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/server/qgswmsserver.cpp
@@ -2013,13 +2013,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 903e8cf

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