I want to add a WMTS service to a WebMap. This is the code i use:
wmts_url = WMTSLAYER
m = gis.map()
wmts_lyr = WMTSLayer(url=wmts_url)
m.add_layer(wmts_lyr)
This works fine with https://wayback.maptiles.arcgis.com/arcgis/rest/services/world_imagery/wmts as WMTSLAYER. But if i use https://sgx.geodatenzentrum.de/wmts_basemapde then i see the following error message "AttributeError: 'PropertyMap' instance has no attribute 'BoundingBox'" coming from add_layer
In WMTSCapabilities.xml from the good WMTS i can find BoundingBox and WGS84BoundingBox. In WMTSCapabilities.xml from basemapde i can only find WGS84BoundingBox. But this is correct because only WGS84BoundingBox is needed from the specification.
How can i do, to add the WMTS basemapde as a layer?
Solved! Go to Solution.
I am having the exact same problem. Did you ever find a solution to this?
I am having the exact same problem. Did you ever find a solution to this?