Describe the bug
Could not get WMTSLayer to work with these services:
https://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS (from https://developers.arcgis.com/rest/services-reference/enterprise/wmts-map-service/)
https://gibs.earthdata.nasa.gov/wmts/epsg4326/best (from https://nasa-gibs.github.io/gibs-api-docs/access-basics/)
I inspected the Python code that is part of installed arcgis package, and realized that WMTSLayer is assuming that the WMTS service only has one layer and one tilematrixset. This is probably the main reason why those WMTS services are not working.
To Reproduce
Steps to reproduce the behavior:
timezone_url = "https://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS" timezone_wmts = WMTSLayer(url=timezone_url) #timezone_wmts = get_local_wmts(timezone_url) m4 = gis.map() m4.add_layer(timezone_wmts) m4
gibs_url = "https://gibs.earthdata.nasa.gov/wmts/epsg4326/best" #gibs_url = "https://gibs.earthdata.nasa.gov/wmts/epsg4326/best/wmts.cgi?" #gibs_url = "https://gibs.earthdata.nasa.gov/wmts/epsg4326/best/wmts.cgi?SERVICE=WMTS&request=GetCapabilities" gibs_wmts = WMTSLayer(url=gibs_url) m3 = gis.map() m3.add_layer(gibs_wmts) m3
error:
<copy the full error message here>
Screenshots
N/A
Expected behavior
Python SDK should work with existing WMTS services, and display informative errors if there are truly issues with the WMTS services
Platform (please complete the following information):
Additional context
Add any other context about the problem here, attachments etc.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4