MCPcopy Index your code
hub / github.com/MapServer/MapServer / msWFSParseRequest

Function msWFSParseRequest

mapwfs.c:3005–3662  ·  view source on GitHub ↗

/ msWFSParseRequest */ / Parse request into the params object. */ /

Source from the content-addressed store, hash-verified

3003/* Parse request into the params object. */
3004/************************************************************************/
3005int msWFSParseRequest(mapObj *map, cgiRequestObj *request, owsRequestObj *ows_request,
3006 wfsParamsObj *wfsparams, int force_wfs_mode)
3007{
3008#ifdef USE_WFS_SVR
3009 int i = 0;
3010
3011 if (!request || !wfsparams)
3012 return MS_FAILURE;
3013
3014 if (request->NumParams > 0)
3015 {
3016 for(i=0; i<request->NumParams; i++)
3017 {
3018 if (request->ParamNames[i] && request->ParamValues[i])
3019 {
3020 if (strcasecmp(request->ParamNames[i], "VERSION") == 0)
3021 wfsparams->pszVersion = msStrdup(request->ParamValues[i]);
3022
3023 else if (strcasecmp(request->ParamNames[i], "UPDATESEQUENCE") == 0)
3024 wfsparams->pszUpdateSequence = msStrdup(request->ParamValues[i]);
3025
3026 else if (strcasecmp(request->ParamNames[i], "REQUEST") == 0)
3027 wfsparams->pszRequest = msStrdup(request->ParamValues[i]);
3028
3029 else if (strcasecmp(request->ParamNames[i], "SERVICE") == 0)
3030 wfsparams->pszService = msStrdup(request->ParamValues[i]);
3031
3032 else if (strcasecmp(request->ParamNames[i], "MAXFEATURES") == 0)
3033 wfsparams->nMaxFeatures = atoi(request->ParamValues[i]);
3034
3035 else if (strcasecmp(request->ParamNames[i], "STARTINDEX") == 0)
3036 wfsparams->nStartIndex = atoi(request->ParamValues[i]);
3037
3038 else if (strcasecmp(request->ParamNames[i], "BBOX") == 0)
3039 wfsparams->pszBbox = msStrdup(request->ParamValues[i]);
3040
3041 else if (strcasecmp(request->ParamNames[i], "SRSNAME") == 0)
3042 wfsparams->pszSrs = msStrdup(request->ParamValues[i]);
3043
3044 else if (strcasecmp(request->ParamNames[i], "RESULTTYPE") == 0)
3045 wfsparams->pszResultType = msStrdup(request->ParamValues[i]);
3046
3047 else if (strcasecmp(request->ParamNames[i], "TYPENAME") == 0)
3048 wfsparams->pszTypeName = msStrdup(request->ParamValues[i]);
3049
3050 else if (strcasecmp(request->ParamNames[i], "FILTER") == 0)
3051 wfsparams->pszFilter = msStrdup(request->ParamValues[i]);
3052
3053 else if (strcasecmp(request->ParamNames[i], "OUTPUTFORMAT") == 0)
3054 wfsparams->pszOutputFormat = msStrdup(request->ParamValues[i]);
3055
3056 else if (strcasecmp(request->ParamNames[i], "FEATUREID") == 0)
3057 wfsparams->pszFeatureId = msStrdup(request->ParamValues[i]);
3058
3059 else if (strcasecmp(request->ParamNames[i], "PROPERTYNAME") == 0)
3060 wfsparams->pszPropertyName = msStrdup(request->ParamValues[i]);
3061
3062 else if (strcasecmp(request->ParamNames[i], "ACCEPTVERSIONS") == 0)

Callers 1

msWFSDispatchFunction · 0.85

Calls 13

strcasecmpFunction · 0.85
msStrdupFunction · 0.85
msWFSGetDefaultVersionFunction · 0.85
msSetErrorFunction · 0.85
msOWSLookupMetadataFunction · 0.85
msStringConcatenateFunction · 0.85
strncasecmpFunction · 0.85
msOWSSchemaValidationFunction · 0.85
msFreeFunction · 0.85
msDebugFunction · 0.85
msSmallReallocFunction · 0.85

Tested by

no test coverage detected