Adds a use_epsg parameter to the WMTS endpoint, which changes the format of the CRS for the tile matrix set. This is needed to support ArcMap, which doesn't like the opengis.net-style CRS in the SupportedCRS.
Also adds an escape to the URLs in the WMTS template, as multiple query parameters were breaking XML parsing b/c of the &.
How you can test it
I've added unit tests. To manually test, you can hit a titiler WMTS endpoint with the parameter, e.g. http://localhost:8000/cog/WMTSCapabilities.xml?url=your-url-here&use_epsg=true and check out the SupportedCRS field.
What I am changing
Adds a
use_epsg
parameter to the WMTS endpoint, which changes the format of the CRS for the tile matrix set. This is needed to support ArcMap, which doesn't like the opengis.net-style CRS in theSupportedCRS
.Also adds an
escape
to the URLs in the WMTS template, as multiple query parameters were breaking XML parsing b/c of the&
.How you can test it
I've added unit tests. To manually test, you can hit a titiler WMTS endpoint with the parameter, e.g.
http://localhost:8000/cog/WMTSCapabilities.xml?url=your-url-here&use_epsg=true
and check out theSupportedCRS
field.Related Issues
Manual testing with ArcMap
This is an ArcMap WMTS configuration against titiler endpoint without any modifications:
The layer doesn't load:
Adding the
use_epsg
parameter:It works!