Skip to content
Permalink
Browse files

WMS server: parse bounding box only if the BBOX parameter is really t…

…here
  • Loading branch information
mhugent authored and rldhont committed Dec 13, 2016
1 parent 4336595 commit 12267f01b639dd1194c1d26a54b383434b03d826
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/server/qgswmsserver.cpp
@@ -2073,8 +2073,13 @@ int QgsWMSServer::configureMapRender( const QPaintDevice* paintDevice ) const
mMapRenderer->setOutputSize( QSize( paintDevice->width(), paintDevice->height() ), paintDevice->logicalDpiX() );

//map extent
bool bboxOk;
QgsRectangle mapExtent = _parseBBOX( mParameters.value( "BBOX", "0,0,0,0" ), bboxOk );
bool bboxOk = true;
QgsRectangle mapExtent;
if( mParameters.contains( "BBOX" ) )
{
mapExtent = _parseBBOX( mParameters.value( "BBOX", "0,0,0,0" ), bboxOk );
}

if ( !bboxOk )
{
//throw a service exception

0 comments on commit 12267f0

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