developmentseed / titiler

Build your own Raster dynamic map tile services
https://developmentseed.org/titiler/
MIT License
755 stars 156 forks source link

ArcMap WMTS compatability issue? #817

Closed swdmike closed 3 months ago

swdmike commented 3 months ago

Problem description

<ows:Title>"{{ title }}"</ows:Title> in src/titiler/core/titiler/core/templates/wmts.xml

ArcGIS 10.7 loads WMTS service only if I remove the quotation marks.

Also, if I may suggest, would it be better if we could use file name in url rather than a generic term "Cloud Optimized GeoTIFF" as the title of a WMTS service?

src/titiler/core/titiler/core/factory.py

return self.templates.TemplateResponse(
                request,
                name="wmts.xml",
                context={
                    "tiles_endpoint": tiles_url,
                    "bounds": bounds,
                    "tileMatrix": tileMatrix,
                    "tms": tms,
                    "supported_crs": supported_crs,
                    "title": "Cloud Optimized GeoTIFF",
                    "layer_name": "cogeo",
                    "media_type": tile_format.mediatype,
                },
                media_type=MediaType.xml.value,
            )

src/titiler/core/titiler/core/factory.py