This question is about loading several layers, and applying a cql filter only 
to one of these layers.

I have some of my data and want to show it as a heatmap with a basemap of the 
world.
This works using a layer group : one layer for my data and one for the baseman.
But I want to be able to add a cql filters on several fields, and then 
regenerate the heatmap on the fly, and still have the basemap too, through 
changing the url (so different urls, and the values for the filters will 
change).
WORKS
1)only data in MYLAYER and a cql filter on this
http://myserver:8080/geoserver/cite/wms?service=WMS&version=1.1.0&request=GetMap
&layers=cite%3AMYLAYER
&CQL_FILTER=somefield>290;somefield<400;someotherfield=3
&styles=heatmap
&bbox=-180.0%2C-90.0%2C180.0%2C90.0&width=768&height=384&srs=EPSG%3A4326&format=application/openlayers
--> I can regenerate the url with different values and see the map immediately.

2)only world map
http://myserver:8080/geoserver/cite/wms?service=WMS&version=1.1.0&request=GetMap
&layers=cite%3AWORLDMAP
&bbox=-179.99999999999997%2C-89.99999999998201%2C179.99999999996405%2C90.0&width=768&height=384&srs=EPSG%3A4326&format=application/openlayers


DOES NOT WORK 
(Combination of 1+2 and CQL Filter for MYLAYER):
http://myserver:8080/geoserver/cite/wms?service=WMS&version=1.1.0&request=GetMap
&layers=cite%3AMYLAYER,cite%3AWORLDMAP
&CQL_FILTER=somefield>290;somefield<400;someotherfield=3
&styles=heatmap
&bbox=-180.0%2C-90.0%2C180.0%2C90.0&width=768&height=384&srs=EPSG%3A4326&format=application/openlayers


Anyone has an example for this? 
I had expected to be able to specify in the CQL filter something like
&CQL_FILTER=MYLAYER.somefield>290
to apply the filter only to one of the layers.

Thanks for input!

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to