Skip to content

Commit

Permalink
Add Czechia provider
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrandwijk committed Jan 21, 2025
1 parent d494401 commit b561934
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ The generator supports adding the own DTM providers, please refer to the [DTM Pr

### Supported DTM providers

![coverage map](https://github.com/user-attachments/assets/e96461fd-e063-4cae-9f59-11bf6efee195)
![coverage map](https://github.com/user-attachments/assets/d32147a7-1998-463a-86dc-d448d7c244b4)

In addition to SRTM 30m, which provides global coverage, the map above highlights all countries and/or regions where higher resolution coverage is provided by one of the DTM providers.

Expand All @@ -683,6 +683,7 @@ In addition to SRTM 30m, which provides global coverage, the map above highlight
| 🇫🇮 Finland | 2 meter | [kbrandwijk](https://github.com/kbrandwijk) |
| 🇩🇰 Denmark | 0.4 meter | [kbrandwijk](https://github.com/kbrandwijk) |
| 🇨🇭 Switzerland | 0.5-2 meter | [kbrandwijk](https://github.com/kbrandwijk) |
| 🇨🇿 Czech Republic | 5 meter | [kbrandwijk](https://github.com/kbrandwijk) |

## Special thanks

Expand Down
2 changes: 2 additions & 0 deletions maps4fs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
from maps4fs.generator.dtm.mv import MecklenburgVorpommernProvider
from maps4fs.generator.dtm.baden import BadenWurttembergProvider
from maps4fs.generator.dtm.arctic import ArcticProvider
from maps4fs.generator.dtm.rema import REMAProvider
from maps4fs.generator.dtm.czech import CzechProvider
from maps4fs.generator.game import Game
from maps4fs.generator.map import Map
from maps4fs.generator.settings import (
Expand Down
35 changes: 35 additions & 0 deletions maps4fs/generator/dtm/czech.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"""This module contains provider of Czech data."""

from maps4fs.generator.dtm.base.wcs import WCSProvider
from maps4fs.generator.dtm.dtm import DTMProvider


class CzechProvider(WCSProvider, DTMProvider):
"""Provider of Czech data."""

_code = "czech"
_name = "Czech Republic"
_region = "CZ"
_icon = "🇨🇿"
_resolution = 5
_author = "[kbrandwijk](https://github.com/kbrandwijk)"
_is_community = True
_instructions = None
_is_base = False
_extents = (51.0576876059846754, 48.4917065572081754, 18.9775933665038821, 12.0428143585602161)

_url = "https://ags.cuzk.cz/arcgis2/services/INSPIRE_Nadmorska_vyska/ImageServer/WCSServer" # pylint: disable=line-too-long
_wcs_version = "1.0.0"
_source_crs = "EPSG:4326"
_tile_size = 0.05

def get_wcs_parameters(self, tile):
print("tile", tile)
return {
"identifier": "MD_LAS",
"crs": "EPSG:4326",
"bbox": tile,
"width": 1000,
"height": 1000,
"format": "GeoTIFF",
}

0 comments on commit b561934

Please sign in to comment.