** */
| 375 | ** |
| 376 | */ |
| 377 | int 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 |
no test coverage detected