Can not add WMTS service with add_layer

337
1
Jump to solution
10-11-2023 06:33 AM
Labels (1)
MichaelNüßlein
New Contributor III

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?

1 Solution

Accepted Solutions
DroneConsult
New Contributor

I am having the exact same problem. Did you ever find a solution to this?

View solution in original post

1 Reply
DroneConsult
New Contributor

I am having the exact same problem. Did you ever find a solution to this?