Skip to content

Commit 3855115

Browse files
mhugentrldhont
authored andcommittedDec 12, 2016
WMS server: parse bounding box only if the BBOX parameter is really there
1 parent dd688a5 commit 3855115

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎src/server/qgswmsserver.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,8 +2080,13 @@ int QgsWMSServer::configureMapRender( const QPaintDevice* paintDevice ) const
20802080
mMapRenderer->setOutputSize( QSize( paintDevice->width(), paintDevice->height() ), paintDevice->logicalDpiX() );
20812081

20822082
//map extent
2083-
bool bboxOk;
2084-
QgsRectangle mapExtent = _parseBBOX( mParameters.value( "BBOX", "0,0,0,0" ), bboxOk );
2083+
bool bboxOk = true;
2084+
QgsRectangle mapExtent;
2085+
if( mParameters.contains( "BBOX" ) )
2086+
{
2087+
mapExtent = _parseBBOX( mParameters.value( "BBOX", "0,0,0,0" ), bboxOk );
2088+
}
2089+
20852090
if ( !bboxOk )
20862091
{
20872092
//throw a service exception

0 commit comments

Comments
 (0)
Please sign in to comment.