TMS ? If you are using GWC you may want to take a look at this issue:
https://osgeo-org.atlassian.net/browse/GEOS-8228
Basically when using vector tiles with GWC metaling needs to be deactivated.
Is not your main issue but help you get a decent cache hit :)
On 07/24/2017 12:47 PM, Dylan Parry wrote:
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
--
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i
file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo
è consentito esclusivamente al destinatario del messaggio, per le finalità
indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne
il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di
procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro
sistema. Conservare il messaggio stesso, divulgarlo anche in parte,
distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse,
costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
------------------------------------------------------------------------------
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