Add Bavaria.
[philipp/winterrodeln/wrpylib.git] / wrpylib / wrdem.py
index 9184247d412beed292c5f8cdd220ec366f7650ae..52b41d7fc54337c40883692a4e9df6d406c39875 100644 (file)
@@ -140,12 +140,16 @@ class DemBasemap(DemRasterBase):
 
 class DemSwitzerland(DemRasterBase):
     def __init__(self):
-        filename = '/home/philipp/daten/GeoData/dem/schweiz_200m/data/DHM200.xyz'
-        filename = '/home/philipp/daten/GeoData/dem/schweiz_200m/data/DHM200.asc'
-        # https://www.swisstopo.admin.ch/de/swisstopo/kostenlose-geobasisdaten.html
+        filename = 'zip:///home/philipp/daten/GeoData/dem/schweiz_200m/dem_schweiz_200m.zip!data/DHM200.asc'
         super().__init__(filename, crs='EPSG:21781')
 
 
+class DemBavaria(DemRasterBase):
+    def __init__(self):
+        filename = 'zip:///home/philipp/daten/GeoData/dem/bayern_50m/dgm50_epsg25832.tif.zip!dgm50_epsg25832.tif'
+        super().__init__(filename)
+
+
 class DemWmsBase(DemBase):
     def __init__(self, url: str, wms_version: str, layer_name: str):
         self.url = url
@@ -180,7 +184,7 @@ class DemSouthTyrol(DemWmsBase):
 
 class MultiDem:
     def __init__(self):
-        self.dems = [DemBasemap(), DemSouthTyrol(), DemSwitzerland()]
+        self.dems = [DemBasemap(), DemSouthTyrol(), DemBavaria(), DemSwitzerland()]
 
     def close(self):
         for dem in self.dems: