maps4fs 1.8.198__py3-none-any.whl → 1.8.199__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- maps4fs/generator/dtm/dtm.py +11 -1
- {maps4fs-1.8.198.dist-info → maps4fs-1.8.199.dist-info}/METADATA +1 -1
- {maps4fs-1.8.198.dist-info → maps4fs-1.8.199.dist-info}/RECORD +6 -6
- {maps4fs-1.8.198.dist-info → maps4fs-1.8.199.dist-info}/LICENSE.md +0 -0
- {maps4fs-1.8.198.dist-info → maps4fs-1.8.199.dist-info}/WHEEL +0 -0
- {maps4fs-1.8.198.dist-info → maps4fs-1.8.199.dist-info}/top_level.txt +0 -0
maps4fs/generator/dtm/dtm.py
CHANGED
@@ -249,10 +249,16 @@ class DTMProvider(ABC):
|
|
249
249
|
return None
|
250
250
|
|
251
251
|
@classmethod
|
252
|
-
def get_valid_provider_descriptions(
|
252
|
+
def get_valid_provider_descriptions(
|
253
|
+
cls, lat_lon: tuple[float, float], default_code: str = "srtm30"
|
254
|
+
) -> dict[str, str]:
|
253
255
|
"""Get descriptions of all providers, where keys are provider codes and
|
254
256
|
values are provider descriptions.
|
255
257
|
|
258
|
+
Arguments:
|
259
|
+
lat_lon (tuple): Latitude and longitude of the center point.
|
260
|
+
default_code (str): Default provider code.
|
261
|
+
|
256
262
|
Returns:
|
257
263
|
dict: Provider descriptions.
|
258
264
|
"""
|
@@ -262,6 +268,10 @@ class DTMProvider(ABC):
|
|
262
268
|
code = provider.code()
|
263
269
|
if code is not None:
|
264
270
|
providers[code] = provider.description()
|
271
|
+
|
272
|
+
# Sort the dictionary, to make sure that the default provider is the first one.
|
273
|
+
providers = dict(sorted(providers.items(), key=lambda item: item[0] != default_code))
|
274
|
+
|
265
275
|
return providers
|
266
276
|
|
267
277
|
@classmethod
|
@@ -26,7 +26,7 @@ maps4fs/generator/dtm/bavaria.py,sha256=nH2wTxiIdQgKotauTqD-zztwFgfZzIdym2sjmSqf
|
|
26
26
|
maps4fs/generator/dtm/canada.py,sha256=XJ_za2LDV9PEV7hmjPnzdwPbpr6ezAR73-HDVaTuKPk,1290
|
27
27
|
maps4fs/generator/dtm/czech.py,sha256=sT0gwbtEnizVNcZeL7kyDdwmKvB3w8m6UgJR7ZTk1to,1058
|
28
28
|
maps4fs/generator/dtm/denmark.py,sha256=JFuBRrCJTMXe_vdO3gRCwsnZ3nZOp_Y6671Kq8aXRGM,1591
|
29
|
-
maps4fs/generator/dtm/dtm.py,sha256=
|
29
|
+
maps4fs/generator/dtm/dtm.py,sha256=FOOI9_vl0KoF3EfLaLm2mvFWeOrjH2_d61VNM2NIjEg,17852
|
30
30
|
maps4fs/generator/dtm/england.py,sha256=3URUm7uLH_RYXcQdDW3Vt09GWKAE8RAy1ZFJB94kXOA,1124
|
31
31
|
maps4fs/generator/dtm/finland.py,sha256=VpXpvCgzbyKA6VGSa7ikSzE4B-cLfR1_2zOHvS8delc,1870
|
32
32
|
maps4fs/generator/dtm/flanders.py,sha256=LltmowbS84_DaBHAS9XYoJPMunX6sWGy6zaVACHj5Ro,1039
|
@@ -51,8 +51,8 @@ maps4fs/toolbox/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,4
|
|
51
51
|
maps4fs/toolbox/background.py,sha256=RclEqxEWLbMxuEkkegQP8jybzugwQ1_R3rdfDe0s21U,2104
|
52
52
|
maps4fs/toolbox/custom_osm.py,sha256=X6ZlPqiOhNjkmdD_qVroIfdOl9Rb90cDwVSLDVYgx80,1892
|
53
53
|
maps4fs/toolbox/dem.py,sha256=z9IPFNmYbjiigb3t02ZenI3Mo8odd19c5MZbjDEovTo,3525
|
54
|
-
maps4fs-1.8.
|
55
|
-
maps4fs-1.8.
|
56
|
-
maps4fs-1.8.
|
57
|
-
maps4fs-1.8.
|
58
|
-
maps4fs-1.8.
|
54
|
+
maps4fs-1.8.199.dist-info/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
|
55
|
+
maps4fs-1.8.199.dist-info/METADATA,sha256=C6odRfeNlXWxxVObXCeR4W0aJ_DNHjnhsOySqQJ7M2E,44904
|
56
|
+
maps4fs-1.8.199.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
57
|
+
maps4fs-1.8.199.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
|
58
|
+
maps4fs-1.8.199.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|