Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c38ad55

Browse files
committedMar 9, 2019
[server] Fix error message reported when QUERY_LAYERS is missing
According to WMS 1.3.0 specs: 7.4.3.4 QUERY_LAYERS The mandatory QUERY_LAYERS parameter states the map layer(s) from which feature information is desired to be retrieved. Its value is a comma-separated list of one or more map layers. This parameter shall contain at least one layer name, but may contain fewer layers than the original GetMap request. If any layer in the QUERY_LAYERS parameter is not defined in the service metadata of the WMS, the server shall issue a service exception (code = LayerNotDefined).
1 parent 3919eef commit c38ad55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/server/services/wms/qgswmsrenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ namespace QgsWms
10241024
if ( queryLayers.isEmpty() )
10251025
{
10261026
QString msg = QObject::tr( "QUERY_LAYERS parameter is required for GetFeatureInfo" );
1027-
throw QgsBadRequestException( QStringLiteral( "LayerNotQueryable" ), msg );
1027+
throw QgsBadRequestException( QStringLiteral( "LayerNotDefined" ), msg );
10281028
}
10291029

10301030
// The I/J parameters are Mandatory if they are not replaced by X/Y or FILTER or FILTER_GEOM

0 commit comments

Comments
 (0)
Please sign in to comment.