Skip to content

Commit f8bc861

Browse files
committed
WFS: use 'srsname' locator instead of 'typename' when issuing an exception about the SRSNAME parameter
1 parent ae61d9c commit f8bc861

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mapwfs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2176,7 +2176,7 @@ static int msWFSRetrieveFeatures(mapObj* map,
21762176
}
21772177

21782178
if (msWFSGetFeatureApplySRS(map, paramsObj->pszSrs, nWFSVersion) == MS_FAILURE)
2179-
return msWFSException(map, "typename", MS_OWS_ERROR_INVALID_PARAMETER_VALUE, paramsObj->pszVersion);
2179+
return msWFSException(map, "srsname", MS_OWS_ERROR_INVALID_PARAMETER_VALUE, paramsObj->pszVersion);
21802180

21812181
/* -------------------------------------------------------------------- */
21822182
/* Parse the Filter parameter. If there are several Filter */
@@ -2337,7 +2337,7 @@ this request. Check wfs/ows_enable_request settings.", "msWFSGetFeature()",
23372337
msWFSAnalyzeStartIndexAndFeatureCount(map, paramsObj, NULL, NULL);
23382338

23392339
if (msWFSGetFeatureApplySRS(map, paramsObj->pszSrs, nWFSVersion) == MS_FAILURE)
2340-
return msWFSException(map, "typename", MS_OWS_ERROR_INVALID_PARAMETER_VALUE, paramsObj->pszVersion);
2340+
return msWFSException(map, "srsname", MS_OWS_ERROR_INVALID_PARAMETER_VALUE, paramsObj->pszVersion);
23412341

23422342
for (j=0; j< iFIDLayers; j++) {
23432343
layerObj *lp;
@@ -2382,7 +2382,7 @@ this request. Check wfs/ows_enable_request settings.", "msWFSGetFeature()",
23822382

23832383
/* Apply the requested SRS */
23842384
if (msWFSGetFeatureApplySRS(map, paramsObj->pszSrs, nWFSVersion) == MS_FAILURE)
2385-
return msWFSException(map, "typename", MS_OWS_ERROR_INVALID_PARAMETER_VALUE, paramsObj->pszVersion);
2385+
return msWFSException(map, "srsname", MS_OWS_ERROR_INVALID_PARAMETER_VALUE, paramsObj->pszVersion);
23862386

23872387
if (!bBBOXSet) {
23882388
for(j=0; j<map->numlayers; j++) {

0 commit comments

Comments
 (0)