Dear Andrea,
Many thanks for your suggestion!

This works when I load several layers that have regular datapoints (loaded as 
style = point) ,but I failed to have it work when I also want to load a " base 
layer of the world”.
( I am using this one 
https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/raster/NE1_50M_SR_W.zip
 as described in the article 
https://medium.com/@dale.bingham_30375/setup-geoserver-for-a-local-gis-application-like-cesiumjs-14322f1178d5
  ).
This layer is added as style=raster - I wonder if this style is the problem as 
you can not apply a CQL filter-not even with INCLUDE on this?


So maybe my question comes down to:  are there better suggestions to easily add 
a base layer of the world (with names of some cities and distinction water/land 
would be nice), that I will be able to add as a layer on which the INCLUDE will 
work when applying a CQL filter?
And what style would those be then?


Many thanks for input!

Joris



On 2 Dec 2020, at 18:21, Andrea Aime 
<[email protected]<mailto:[email protected]>> wrote:

On Wed, Dec 2, 2020 at 5:23 PM Joris Billen 
<[email protected]<mailto:[email protected]>> wrote:
http://myserver:8080/geoserver/cite/wms?service=WMS&version=1.1.0&request=GetMap
&layers=cite%3AMYLAYER,cite%3AWORLDMAP<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

You need to have a matching filter for each layer, or the only filter you 
specify will be applied to all of them.
For a layers list like:

&layers=cite%3AMYLAYER,cite%3AWORLDMAP

you'll likely want:

&cql_filter=somefield>290;INCLUDE

The ";" separates the filters, now we have one for the first layer, and one for 
the layer group,
which is really just a placeholder, INCLUDE means "accept everything"

Hope this helps

Best regards
Andrea

== GeoServer Professional Services from the experts! Visit 
http://goo.gl/it488V<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgoo.gl%2Fit488V&data=04%7C01%7Cjoris.billen%40bigindustries.be%7Cce121a05dee646ea493c08d896e6b1eb%7C49c3d703357947bfa8887c913fbdced9%7C0%7C0%7C637425264858413185%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=74SiDrJkKt26qXpnSZSOiLhQigu5WCFE1aY%2BqP87FG0%3D&reserved=0>
 for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions 
S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: 
+39 0584 1660272 mob: +39 339 8844549 
http://www.geo-solutions.it<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.geo-solutions.it%2F&data=04%7C01%7Cjoris.billen%40bigindustries.be%7Cce121a05dee646ea493c08d896e6b1eb%7C49c3d703357947bfa8887c913fbdced9%7C0%7C0%7C637425264858423177%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=NxsKYlc7Sk8r7t1H4HP4jBjjnoMHWkwXYkdV%2Bh6GMqc%3D&reserved=0>
 
http://twitter.com/geosolutions_it<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Ftwitter.com%2Fgeosolutions_it&data=04%7C01%7Cjoris.billen%40bigindustries.be%7Cce121a05dee646ea493c08d896e6b1eb%7C49c3d703357947bfa8887c913fbdced9%7C0%7C0%7C637425264858423177%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=H5KiI3CkS0jx9PxnOqtlTDXvQQ3DELCQcD9Wv%2BsRMxo%3D&reserved=0>
 ------------------------------------------------------- Con riferimento alla 
normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento 
generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza 
inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è 
un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo 
scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, 
ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene 
notizia. This email is intended only for the person or entity to which it is 
addressed and may contain information that is privileged, confidential or 
otherwise protected from disclosure. We remind that - as provided by European 
Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or 
the information herein by anyone other than the intended recipient is 
prohibited. If you have received this email by mistake, please notify us 
immediately by telephone or e-mail.

_______________________________________________
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