Skip to main content

The GEOMETRY parameter currently only applies to the WMS and WCS services. Any chance that it can can be implemented for the GetTile request of the WMTS as well?

I was wrong afterall, the WMTS masking does work with a GEOMETRY parameter applied for clipping the layer, as long as the FORMAT is set to “image/png” and TRANSPARENT=TRUE.


Sorry for not responding earlier. I think this functionality was not available then yet, we have added it for WMTS in one of the recent releases. And forgot to respond to this post…

Thank you for a follow-up.


Reminder to update documentation here then 🙂


https://www.sentinel-hub.com/develop/documentation/api/custom-url-parameters


Geometry is still only shown to be supported for WMS/WCS.


@fcbasson: could you share an example of the request you did for your WMTS using geometry?

I can’t get it to work somehow.


William


EDIT: I inject the BBOX of my geometry instead and that works just fine, thanks in any case!


An example call:


https://services.sentinel-hub.com/ogc/wmts/<INSTANCE_ID>?SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&LAYER=NDVI&STYLE=default&FORMAT=image/png&TILEMATRIXSET=PopularWebMercator512&TILEMATRIX=13&TILEROW=1445&TILECOL=2232&GEOMETRY=POLYGON((

1805034 5891249,

1806783 5891249,

1806783 5889520,

1805034 5889520,

1805034 5891249

))


Thanks for a reminder.



Reply