Skip to content

Commit 12267f0

Browse files
mhugentrldhont
authored andcommitted
WMS server: parse bounding box only if the BBOX parameter is really there
1 parent 4336595 commit 12267f0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/server/qgswmsserver.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -2073,8 +2073,13 @@ int QgsWMSServer::configureMapRender( const QPaintDevice* paintDevice ) const
20732073
mMapRenderer->setOutputSize( QSize( paintDevice->width(), paintDevice->height() ), paintDevice->logicalDpiX() );
20742074

20752075
//map extent
2076-
bool bboxOk;
2077-
QgsRectangle mapExtent = _parseBBOX( mParameters.value( "BBOX", "0,0,0,0" ), bboxOk );
2076+
bool bboxOk = true;
2077+
QgsRectangle mapExtent;
2078+
if( mParameters.contains( "BBOX" ) )
2079+
{
2080+
mapExtent = _parseBBOX( mParameters.value( "BBOX", "0,0,0,0" ), bboxOk );
2081+
}
2082+
20782083
if ( !bboxOk )
20792084
{
20802085
//throw a service exception

0 commit comments

Comments
 (0)