-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mecklenburg-Vorpommern and Baden-Württemberg DTM Provider
* Mecklenburg-Vorpommern DTM Provider * add extents * Baden-Württemberg DTM provider
- Loading branch information
1 parent
2de919f
commit 13b00cf
Showing
4 changed files
with
97 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""This module contains provider of Baden-Württemberg data.""" | ||
|
||
from maps4fs.generator.dtm.base.wcs import WCSProvider | ||
from maps4fs.generator.dtm.dtm import DTMProvider | ||
|
||
|
||
class BadenWurttembergProvider(WCSProvider, DTMProvider): | ||
"""Provider of Baden-Württemberg data.""" | ||
|
||
_code = "baden" | ||
_name = "Baden-Württemberg" | ||
_region = "DE" | ||
_icon = "🇩🇪" | ||
_resolution = "1" | ||
_author = "[kbrandwijk](https://github.com/kbrandwijk)" | ||
_is_community = True | ||
_instructions = None | ||
_is_base = False | ||
_extents = (49.79645444804715, 47.52877040346605, 10.54203149250156, 7.444081717803481) | ||
|
||
_url = "https://owsproxy.lgl-bw.de/owsproxy/wcs/WCS_INSP_BW_Hoehe_Coverage_DGM1" | ||
_wcs_version = "2.0.1" | ||
_source_crs = "EPSG:25832" | ||
_tile_size = 1000 | ||
|
||
def get_wcs_parameters(self, tile): | ||
return { | ||
"identifier": ["EL.ElevationGridCoverage"], | ||
"subsets": [("E", str(tile[1]), str(tile[3])), ("N", str(tile[0]), str(tile[2]))], | ||
"format": "image/tiff", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
"""This module contains provider of Mecklenburg-Vorpommern data.""" | ||
|
||
from maps4fs.generator.dtm.base.wcs import WCSProvider | ||
from maps4fs.generator.dtm.dtm import DTMProvider, DTMProviderSettings | ||
|
||
|
||
class MecklenburgVorpommernProviderSettings(DTMProviderSettings): | ||
"""Settings for the Mecklenburg-Vorpommern provider.""" | ||
|
||
dataset: dict | str = { | ||
"mv_dgm": "Mecklenburg-Vorpommern DGM1", | ||
"mv_dgm5": "Mecklenburg-Vorpommern DGM5", | ||
"mv_dgm25": "Mecklenburg-Vorpommern DGM25", | ||
} | ||
|
||
|
||
class MecklenburgVorpommernProvider(WCSProvider, DTMProvider): | ||
"""Provider of Mecklenburg-Vorpommern data.""" | ||
|
||
_code = "mv" | ||
_name = "Mecklenburg-Vorpommern" | ||
_region = "DE" | ||
_icon = "🇩🇪" | ||
_resolution = "1-25" | ||
_author = "[kbrandwijk](https://github.com/kbrandwijk)" | ||
_is_community = True | ||
_instructions = None | ||
_is_base = False | ||
_settings = MecklenburgVorpommernProviderSettings | ||
_extents = (54.8, 53, 14.5, 10.5) | ||
|
||
_url = "https://www.geodaten-mv.de/dienste/dgm_wcs" | ||
_wcs_version = "2.0.1" | ||
_source_crs = "EPSG:25833" | ||
_tile_size = 1000 | ||
|
||
def get_wcs_parameters(self, tile): | ||
return { | ||
"identifier": [self.user_settings.dataset], | ||
"subsets": [("x", str(tile[1]), str(tile[3])), ("y", str(tile[0]), str(tile[2]))], | ||
"format": "image/tiff", | ||
} |