Skip to content

Commit

Permalink
Merge missing branch 'branch-7-2' changes...
Browse files Browse the repository at this point in the history
  • Loading branch information
sdlime committed Mar 29, 2019
2 parents 3a2dac9 + 8ad2301 commit 0353da8
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions mapwms.c
Expand Up @@ -1366,22 +1366,6 @@ int msWMSLoadGetMapParams(mapObj *map, int nVersion,
adjust_extent = MS_TRUE;
}

/*
** Apply vendor-specific filter if specified
*/
if (filter) {
if (sld_url || sld_body) {
msSetError(MS_WMSERR,
"Vendor-specific FILTER parameter cannot be used with SLD or SLD_BODY.",
"msWMSLoadGetMapParams()");
return msWMSException(map, nVersion, NULL, wms_exception_format);
}

if (msWMSApplyFilter(map, nVersion, filter, need_axis_swap, wms_exception_format) == MS_FAILURE) {
return MS_FAILURE;/* msWMSException(map, nVersion, "InvalidFilterRequest"); */
}
}

/*
** If any select layers have a default time, we will apply the default
** time value even if no TIME request was in the url.
Expand Down Expand Up @@ -1658,6 +1642,22 @@ this request. Check wms/ows_enable_request settings.",
}
}

/*
** Apply vendor-specific filter if specified
*/
if (filter) {
if (sld_url || sld_body) {
msSetError(MS_WMSERR,
"Vendor-specific FILTER parameter cannot be used with SLD or SLD_BODY.",
"msWMSLoadGetMapParams()");
return msWMSException(map, nVersion, NULL, wms_exception_format);
}

if (msWMSApplyFilter(map, nVersion, filter, need_axis_swap, wms_exception_format) == MS_FAILURE) {
return MS_FAILURE;/* msWMSException(map, nVersion, "InvalidFilterRequest"); */
}
}

if (sld_url || sld_body) {
int nLayersBefore, nLayerAfter;
char request_tmp[32];
Expand Down

0 comments on commit 0353da8

Please sign in to comment.