Hi,

I'm using TMS with the VectorTile extension rather than WFS. I believe this is the recommended method as it simplifies the data for smaller scales and delivers a much smaller dataset. I've had a quick look, and it seems that CQL isn't supported by this setup :(

For now, I've found that I'm able to specify min/max resolutions in OpenLayers, and have split the layer groups into several groups that I can turn on/off based on the resolution. Eg. housing is a layer group, roads another etc. This means more requests to the server, but I can live with that as the TMS is going via GeoWebCache so it's no big strain on resources.

Thanks for your help though. Hopefully filtering support will come with time, but the hack I'm using at the moment will do for now at least.


On 24/07/17 11:59, Paul Wittle via Geoserver-users wrote:

Hi,

I believe you can use the CQL filter parameter if you are using a GET HTTP request but if you have a complex filter you may need to use a POST request and the OGC filter as a parameter. I assume you need to switch to POST requests as there is a limit on the length a URL can be and long CQL can make you hit the limit if you are querying by polygon.

I’ve actually just been looking into it again last week as I need the filters for WFS GetFeature requests; I’m assuming that is the service you are using for your vector tiles.

In terms of constructing the correct filters you should consult the documentation at http://docs.geoserver.org/latest/en/user/filter/index.html

However I don’t know how that works in terms of layergroups where you want an entire layer to be ignored at a given scale. I don’t know if WFS even uses the concept. I think it just returns the features within the given bbox and without rendering dimensions I’m not sure a scale dominator would apply. Hopefully someone else will help you there?

If the request returns a feature ID (FID) then you may be able to filter out whole layers based on the request size in units i.e. the width and height of your bbox.

Paul

"This e-mail is intended for the named addressee(s) only and may contain information about individuals or other sensitive information and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this email in error, kindly disregard the content of the message and notify the sender immediately. Please be aware that all email may be subject to recording and/or monitoring in accordance with relevant legislation."


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
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

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------
Dylan Parry
Lead Developer, Blue Fox Technology Ltd
------------------------------------------------------------------------
<http://www.opusmap.co.uk>        T:      01452 524901
W:      www.opusmap.co.uk <http://www.opusmap.co.uk/>
LinkedIn <https://www.linkedin.com/company/blue-fox-technology-ltd?trk=biz-companies-cym> Twitter <https://twitter.com/opusmap> YouTube <https://www.youtube.com/channel/UCIpw1EnG55-D9DzzbkZXV_A> Google+ <https://plus.google.com/u/0/b/112115908251760042852/+OpusmapUk>
Opus Map - Try it for free <http://www.opusmap.co.uk/free-demo/>
Registered in England and Wales, Company No. 05908226.
Registered office: Windsor House, 26 Mostyn Avenue, Craig-Y-Don, Llandudno, Conwy LL30 1YY

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to