@@ -1366,22 +1366,6 @@ int msWMSLoadGetMapParams(mapObj *map, int nVersion,
1366
1366
adjust_extent = MS_TRUE ;
1367
1367
}
1368
1368
1369
- /*
1370
- ** Apply vendor-specific filter if specified
1371
- */
1372
- if (filter ) {
1373
- if (sld_url || sld_body ) {
1374
- msSetError (MS_WMSERR ,
1375
- "Vendor-specific FILTER parameter cannot be used with SLD or SLD_BODY." ,
1376
- "msWMSLoadGetMapParams()" );
1377
- return msWMSException (map , nVersion , NULL , wms_exception_format );
1378
- }
1379
-
1380
- if (msWMSApplyFilter (map , nVersion , filter , need_axis_swap , wms_exception_format ) == MS_FAILURE ) {
1381
- return MS_FAILURE ;/* msWMSException(map, nVersion, "InvalidFilterRequest"); */
1382
- }
1383
- }
1384
-
1385
1369
/*
1386
1370
** If any select layers have a default time, we will apply the default
1387
1371
** time value even if no TIME request was in the url.
@@ -1658,6 +1642,22 @@ this request. Check wms/ows_enable_request settings.",
1658
1642
}
1659
1643
}
1660
1644
1645
+ /*
1646
+ ** Apply vendor-specific filter if specified
1647
+ */
1648
+ if (filter ) {
1649
+ if (sld_url || sld_body ) {
1650
+ msSetError (MS_WMSERR ,
1651
+ "Vendor-specific FILTER parameter cannot be used with SLD or SLD_BODY." ,
1652
+ "msWMSLoadGetMapParams()" );
1653
+ return msWMSException (map , nVersion , NULL , wms_exception_format );
1654
+ }
1655
+
1656
+ if (msWMSApplyFilter (map , nVersion , filter , need_axis_swap , wms_exception_format ) == MS_FAILURE ) {
1657
+ return MS_FAILURE ;/* msWMSException(map, nVersion, "InvalidFilterRequest"); */
1658
+ }
1659
+ }
1660
+
1661
1661
if (sld_url || sld_body ) {
1662
1662
int nLayersBefore , nLayerAfter ;
1663
1663
char request_tmp [32 ];
0 commit comments