Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArcMap WMTS compatability issue? #817

Closed
swdmike opened this issue May 20, 2024 · 0 comments · Fixed by #818
Closed

ArcMap WMTS compatability issue? #817

swdmike opened this issue May 20, 2024 · 0 comments · Fixed by #818
Labels
bug Something isn't working

Comments

@swdmike
Copy link

swdmike commented May 20, 2024

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

@swdmike swdmike added the bug Something isn't working label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant