You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the WMTSGenerator implementation supports only a single layer per dataset. We need to include separate <Layer> elements for each statistic or data layer in the WMTS capabilities document.
Option 1: Extend the Current Class
Changes:
Modify the WMTSCapabilitiesGenerator class to support multiple layers:
self.layers= []
Create an add_layer() method and call it for every layer before writing the XML in the file.
WMTSGenerator Multi-Layer Support
Currently, the WMTSGenerator implementation supports only a single layer per dataset. We need to include separate
<Layer>
elements for each statistic or data layer in the WMTS capabilities document.Option 1: Extend the Current Class
WMTSCapabilitiesGenerator
class to support multiple layers:add_layer()
method and call it for every layer before writing the XML in the file.self.layers
and generate a<Layer>
element for each.Option 2: Use OWSLib
Pros:
Cons:
xml.etree.ElementTree
to OWSLib).The text was updated successfully, but these errors were encountered: