Hi,
I had a quick look at the code (but mind, not the maintainer of it) and
indeed I have the impression that TMS cannot handle
request parameters, while for example WMTS does.

WMTS loads the "filteringParameters" and then passes them to the tile
construction path, here:

   -
   
https://github.com/GeoWebCache/geowebcache/blob/5e913193ff50a61ef9dd63a87887189352fa6b21/geowebcache/wmts/src/main/java/org/geowebcache/service/wmts/WMTSService.java#L260
   -
   
https://github.com/GeoWebCache/geowebcache/blob/5e913193ff50a61ef9dd63a87887189352fa6b21/geowebcache/wmts/src/main/java/org/geowebcache/service/wmts/WMTSService.java#L277
   -
   
https://github.com/GeoWebCache/geowebcache/blob/5e913193ff50a61ef9dd63a87887189352fa6b21/geowebcache/wmts/src/main/java/org/geowebcache/service/wmts/WMTSService.java#L412

TMS instead does not, and always passes a null in that parameter position:

   -
   
https://github.com/GeoWebCache/geowebcache/blob/5e913193ff50a61ef9dd63a87887189352fa6b21/geowebcache/tms/src/main/java/org/geowebcache/service/tms/TMSService.java#L144

Does not seem too hard to add support, along with the mandatory
unit/integration test, and make a PR.

GeoWebCache does does not have a contribution guideline file it seems, but
you can read the GeoServer guidelines and
adapt them to the GeoWebCache repository:
https://github.com/geoserver/geoserver/blob/master/CONTRIBUTING.md

If you cannot develop code, I'd at least open a ticket here:
https://github.com/GeoWebCache/geowebcache/issues

and eventually consider sponsoring a code change through one of the
commercial support providers: http://geoserver.org/support/

Cheers
Andrea


On Sat, Dec 1, 2018 at 10:18 AM Fritz Richter <fr...@adsquare.com> wrote:

> Hi there,
> I am playing now for hours and can't get it to run.
>
> *Can I use parameters (like viewparams) for the cached TMS within
> GeoServer?*
>
>
> I configured a SQL View Layer with one parameter %dataset_id%. Next I
> enabled the caching and added a new parameter filter for my viewparams and
> configured the reg-ex like that: "^dataset_id:[\d]+$".
>
> I try to access my TMS with the following URL:
>
> localhost:8080/geoserver/gwc/service/tms/1.0.0/main:datasets@EPSG
> %3A900913@pbf/{z}/{x}/{y}.pbf?viewparams=dataset_id:4
>
> But whatever I do, my cache always delivers back the default value. I read
> an old article from 2012, where it says I can not do TMS/viewparams with
> the in-built geowebcache but need to install the external version (war). Is
> this really true?
>
> How can I create dynamic, cached layers with the inbuilt solution?
>
> Best
> Fritz
> _______________________________________________
> 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
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

Regards, Andrea Aime == GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V 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 http://twitter.com/geosolutions_it
------------------------------------------------------- *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


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

Reply via email to