Skip to content

Commit

Permalink
WMS server: parse bounding box only if the BBOX parameter is really t…
Browse files Browse the repository at this point in the history
…here
  • Loading branch information
mhugent authored and rldhont committed Dec 13, 2016
1 parent 4336595 commit 12267f0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/server/qgswmsserver.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 12267f0

Please sign in to comment.