Skip to content
Permalink
Browse files
VERSION is mandatory for getmap requests in WMS 1.3.0
  • Loading branch information
pblottiere committed May 31, 2021
1 parent 3f4b48a commit ce01a3586a9ce50dff367ca374062016fc9ab9ce
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/server/services/wms/qgswmsgetmap.cpp
@@ -32,6 +32,12 @@ namespace QgsWms
const QgsWmsRequest &request,
QgsServerResponse &response )
{
if ( request.serverParameters().version().isEmpty() )
{
throw QgsServiceException( QgsServiceException::OGC_OperationNotSupported,
QStringLiteral( "Please add the value of the VERSION parameter" ), 501 );
}

// prepare render context
QgsWmsRenderContext context( project, serverIface );
context.setFlag( QgsWmsRenderContext::UpdateExtent );

0 comments on commit ce01a35

Please sign in to comment.