Skip to content
Permalink
Browse files

WFS: use 'srsname' locator instead of 'typename' when issuing an exce…

…ption about the SRSNAME parameter
  • Loading branch information
rouault committed Nov 9, 2013
1 parent ae61d9c commit f8bc861abeaa07ffefbef43dbe93dd719e125db2
Showing with 3 additions and 3 deletions.
  1. +3 −3 mapwfs.c
@@ -2176,7 +2176,7 @@ static int msWFSRetrieveFeatures(mapObj* map,
}

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

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

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

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

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

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

0 comments on commit f8bc861

Please sign in to comment.
You can’t perform that action at this time.