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

Function msWMSLoadGetMapParams

mapwms.c:377–1228  ·  view source on GitHub ↗

** */

Source from the content-addressed store, hash-verified

375**
376*/
377int msWMSLoadGetMapParams(mapObj *map, int nVersion,
378 char **names, char **values, int numentries, char *wms_exception_format,
379 const char *wms_request, owsRequestObj *ows_request)
380{
381 int i, adjust_extent = MS_FALSE, nonsquare_enabled = MS_FALSE;
382 int iUnits = -1;
383 int nLayerOrder = 0;
384 int transparent = MS_NOOVERRIDE;
385 outputFormatObj *format = NULL;
386 int validlayers = 0;
387 char *styles = NULL;
388 int numlayers = 0;
389 char **layers = NULL;
390 int layerfound =0;
391 int invalidlayers = 0;
392 char epsgbuf[100];
393 char srsbuffer[100];
394 int epsgvalid = MS_FALSE;
395 const char *projstring;
396 int timerequest = 0;
397 char *stime = NULL;
398 char **tokens=NULL;
399 int n,j;
400 int srsfound = 0;
401 int bboxfound = 0;
402 int formatfound = 0;
403 int widthfound = 0;
404 int heightfound = 0;
405 char *request = NULL;
406 int status = 0;
407 const char *layerlimit = NULL;
408
409 char *bboxrequest=NULL;
410 const char *sldenabled=NULL;
411 char *sld_url=NULL, *sld_body=NULL;
412
413 epsgbuf[0]='\0';
414 srsbuffer[0]='\0';
415
416
417 /* Some of the getMap parameters are actually required depending on the */
418 /* request, but for now we assume all are optional and the map file */
419 /* defaults will apply. */
420
421 msAdjustExtent(&(map->extent), map->width, map->height);
422
423
424
425 for(i=0; map && i<numentries; i++)
426 {
427 /* getMap parameters */
428
429 if (strcasecmp(names[i], "REQUEST") == 0)
430 {
431 request = values[i];
432 }
433
434

Callers 2

msWMSDispatchFunction · 0.85
msMapLoadOWSParametersFunction · 0.85

Calls 15

msAdjustExtentFunction · 0.85
strcasecmpFunction · 0.85
msOWSLookupMetadataFunction · 0.85
msSetErrorFunction · 0.85
msWMSExceptionFunction · 0.85
msStringSplitFunction · 0.85
msIntegerInArrayFunction · 0.85
msFreeCharArrayFunction · 0.85
strncasecmpFunction · 0.85
msOwsIsOutputFormatValidFunction · 0.85
msSelectOutputFormatFunction · 0.85
msFreeFunction · 0.85

Tested by

no test coverage detected