Пример #1
0
 def layer_builder(i):
     name = f"layer_wmts_{i}"
     layer = LayerWMTS(name=name)
     layer.layer = name
     layer.url = f"https:///wms.geo.admin.ch_{i}.org?service=wms&request=GetCapabilities"
     layer.public = 1 == i % 2
     layer.geo_table = f"geotable_{i}"
     layer.image_type = "image/jpeg"
     layer.style = "décontrasté"
     return layer
Пример #2
0
 def layer_builder(i):
     name = 'layer_wmts_{}'.format(i)
     layer = LayerWMTS(name=name)
     layer.layer = name
     layer.url = 'https:///wms.geo.admin.ch_{}.org?service=wms&request=GetCapabilities'.format(i)
     layer.public = 1 == i % 2
     layer.geo_table = 'geotable_{}'.format(i)
     layer.image_type = 'image/jpeg'
     layer.style = 'décontrasté'
     return layer