maps4fs 1.8.217__py3-none-any.whl → 1.8.218__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/dem.py +11 -5
- maps4fs/generator/settings.py +1 -1
- {maps4fs-1.8.217.dist-info → maps4fs-1.8.218.dist-info}/METADATA +1 -1
- {maps4fs-1.8.217.dist-info → maps4fs-1.8.218.dist-info}/RECORD +7 -7
- {maps4fs-1.8.217.dist-info → maps4fs-1.8.218.dist-info}/LICENSE.md +0 -0
- {maps4fs-1.8.217.dist-info → maps4fs-1.8.218.dist-info}/WHEEL +0 -0
- {maps4fs-1.8.217.dist-info → maps4fs-1.8.218.dist-info}/top_level.txt +0 -0
maps4fs/generator/dem.py
CHANGED
@@ -125,9 +125,7 @@ class DEM(Component):
|
|
125
125
|
entry = {
|
126
126
|
"min": float(data.min()),
|
127
127
|
"max": float(data.max()),
|
128
|
-
"std": data.std(),
|
129
128
|
"deviation": float(data.max() - data.min()),
|
130
|
-
"mean": data.mean(),
|
131
129
|
"dtype": str(data.dtype),
|
132
130
|
"shape": str(data.shape),
|
133
131
|
}
|
@@ -233,15 +231,23 @@ class DEM(Component):
|
|
233
231
|
adjusted_height_scale = math.ceil(
|
234
232
|
max(height_scale, data.max() + self.map.dem_settings.ceiling)
|
235
233
|
)
|
236
|
-
self.info["adjusted_height_scale"] = adjusted_height_scale
|
237
234
|
|
238
235
|
self.map.shared_settings.height_scale_value = adjusted_height_scale # type: ignore
|
239
236
|
self.map.shared_settings.mesh_z_scaling_factor = 65535 / adjusted_height_scale
|
240
|
-
self.info["mesh_z_scaling_factor"] = 65535 / adjusted_height_scale
|
241
237
|
self.map.shared_settings.height_scale_multiplier = adjusted_height_scale / 255
|
242
|
-
self.info["height_scale_multiplier"] = adjusted_height_scale / 255
|
243
238
|
self.map.shared_settings.change_height_scale = True # type: ignore
|
244
239
|
|
240
|
+
try:
|
241
|
+
entry = {
|
242
|
+
"height_scale_from_settings": height_scale,
|
243
|
+
"adjusted_height_scale": adjusted_height_scale,
|
244
|
+
"mesh_z_scaling_factor": self.map.shared_settings.mesh_z_scaling_factor,
|
245
|
+
"height_scale_multiplier": self.map.shared_settings.height_scale_multiplier,
|
246
|
+
}
|
247
|
+
self.info["height_scale"] = entry
|
248
|
+
except Exception as e:
|
249
|
+
self.logger.warning("Failed to update DEM info: %s.", e)
|
250
|
+
|
245
251
|
self.logger.debug("Height scale value is %s.", adjusted_height_scale)
|
246
252
|
return adjusted_height_scale
|
247
253
|
|
maps4fs/generator/settings.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
maps4fs/__init__.py,sha256=EGvLVoRpSt4jITswsGbe1ISVmGAZAMQJcBmTwtyuVxI,335
|
2
2
|
maps4fs/logger.py,sha256=HQrDyj72mUjVYo25aR_-_SxVn2rfFjDCNbj-JKJdSnE,1488
|
3
3
|
maps4fs/generator/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,43
|
4
|
-
maps4fs/generator/dem.py,sha256=
|
4
|
+
maps4fs/generator/dem.py,sha256=a9B3tatj7pzvvdLIyLw7BA3JoDTibFczpqiXJnx054U,12864
|
5
5
|
maps4fs/generator/game.py,sha256=NZaxj5z7WzMiHzAvQyr-TvVjGoHgqGldM6ZsItuYyzA,11292
|
6
6
|
maps4fs/generator/map.py,sha256=1mbnOWXVEDeFHWDBBDX9ugzRtrGBQYrJ5ruKmPUsMe8,11136
|
7
7
|
maps4fs/generator/qgis.py,sha256=Es8hLuqN_KH8lDfnJE6He2rWYbAKJ3RGPn-o87S6CPI,6116
|
8
|
-
maps4fs/generator/settings.py,sha256=
|
8
|
+
maps4fs/generator/settings.py,sha256=d3NaMpyFh-IZWtHV2UQMMqUfuPP76lv7mIN2d7mORqA,6747
|
9
9
|
maps4fs/generator/component/__init__.py,sha256=s01yVVVi8R2xxNvflu2D6wTd9I_g73AMM2x7vAC7GX4,490
|
10
10
|
maps4fs/generator/component/background.py,sha256=ppxK2RheCYrLRnBkLeZUst6Ciopo9Z_zUyjS-n8YwGE,18794
|
11
11
|
maps4fs/generator/component/config.py,sha256=RitKgFDZPzjA1fi8GcEi1na75qqaueUvpcITHjBvCXc,3674
|
@@ -52,8 +52,8 @@ maps4fs/toolbox/__init__.py,sha256=zZMLEkGzb4z0xql650gOtGSvcgX58DnJ2yN3vC2daRk,4
|
|
52
52
|
maps4fs/toolbox/background.py,sha256=RclEqxEWLbMxuEkkegQP8jybzugwQ1_R3rdfDe0s21U,2104
|
53
53
|
maps4fs/toolbox/custom_osm.py,sha256=X6ZlPqiOhNjkmdD_qVroIfdOl9Rb90cDwVSLDVYgx80,1892
|
54
54
|
maps4fs/toolbox/dem.py,sha256=z9IPFNmYbjiigb3t02ZenI3Mo8odd19c5MZbjDEovTo,3525
|
55
|
-
maps4fs-1.8.
|
56
|
-
maps4fs-1.8.
|
57
|
-
maps4fs-1.8.
|
58
|
-
maps4fs-1.8.
|
59
|
-
maps4fs-1.8.
|
55
|
+
maps4fs-1.8.218.dist-info/LICENSE.md,sha256=pTKD_oUexcn-yccFCTrMeLkZy0ifLRa-VNcDLqLZaIw,10749
|
56
|
+
maps4fs-1.8.218.dist-info/METADATA,sha256=WW9AsSg2cAN09JKISXdtx8yV5O0cP5CE4IOOgafTHSw,45770
|
57
|
+
maps4fs-1.8.218.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
58
|
+
maps4fs-1.8.218.dist-info/top_level.txt,sha256=Ue9DSRlejRQRCaJueB0uLcKrWwsEq9zezfv5dI5mV1M,8
|
59
|
+
maps4fs-1.8.218.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|