voxcity 0.4.5__py3-none-any.whl → 0.4.7__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.
Potentially problematic release.
This version of voxcity might be problematic. Click here for more details.
- voxcity/geoprocessor/grid.py +4 -1
- {voxcity-0.4.5.dist-info → voxcity-0.4.7.dist-info}/METADATA +6 -2
- {voxcity-0.4.5.dist-info → voxcity-0.4.7.dist-info}/RECORD +7 -7
- {voxcity-0.4.5.dist-info → voxcity-0.4.7.dist-info}/WHEEL +1 -1
- {voxcity-0.4.5.dist-info → voxcity-0.4.7.dist-info/licenses}/LICENSE +1 -1
- {voxcity-0.4.5.dist-info → voxcity-0.4.7.dist-info/licenses}/AUTHORS.rst +0 -0
- {voxcity-0.4.5.dist-info → voxcity-0.4.7.dist-info}/top_level.txt +0 -0
voxcity/geoprocessor/grid.py
CHANGED
|
@@ -3,6 +3,7 @@ This module provides functions for creating and manipulating grids of building h
|
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
import numpy as np
|
|
6
|
+
import pandas as pd
|
|
6
7
|
import os
|
|
7
8
|
from shapely.geometry import Polygon, box
|
|
8
9
|
from scipy.ndimage import label, generate_binary_structure
|
|
@@ -575,8 +576,10 @@ def create_building_height_grid_from_gdf_polygon(
|
|
|
575
576
|
height = complement_height
|
|
576
577
|
|
|
577
578
|
min_height = row.get('min_height', 0)
|
|
579
|
+
if pd.isna(min_height):
|
|
580
|
+
min_height = 0
|
|
578
581
|
is_inner = row.get('is_inner', False)
|
|
579
|
-
feature_id = row.get('id', idx_b)
|
|
582
|
+
feature_id = row.get('id', row.get('building_id', idx_b))
|
|
580
583
|
|
|
581
584
|
# Fix invalid geometry (buffer(0) or simplify if needed)
|
|
582
585
|
# Doing this once per building avoids repeated overhead per cell.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: voxcity
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.7
|
|
4
4
|
Summary: voxcity is an easy and one-stop tool to output 3d city models for microclimate simulation by integrating multiple geospatial open-data
|
|
5
5
|
Author-email: Kunihiko Fujiwara <kunihiko@nus.edu.sg>
|
|
6
6
|
Maintainer-email: Kunihiko Fujiwara <kunihiko@nus.edu.sg>
|
|
@@ -58,6 +58,7 @@ Requires-Dist: coverage; extra == "dev"
|
|
|
58
58
|
Requires-Dist: mypy; extra == "dev"
|
|
59
59
|
Requires-Dist: pytest; extra == "dev"
|
|
60
60
|
Requires-Dist: ruff; extra == "dev"
|
|
61
|
+
Dynamic: license-file
|
|
61
62
|
|
|
62
63
|
[](https://pypi.python.org/pypi/voxcity)
|
|
63
64
|
[](https://pypi.org/project/voxcity/)
|
|
@@ -66,6 +67,9 @@ Requires-Dist: ruff; extra == "dev"
|
|
|
66
67
|
[](https://pepy.tech/project/voxcity)
|
|
67
68
|
<!-- [](https://creativecommons.org/licenses/by-sa/4.0/) -->
|
|
68
69
|
|
|
70
|
+
<p align="center">
|
|
71
|
+
Tutorial preview: <a href="https://colab.research.google.com/drive/1Lofd3RawKMr6QuUsamGaF48u2MN0hfrP?usp=sharing">[Google Colab]</a>
|
|
72
|
+
</p>
|
|
69
73
|
|
|
70
74
|
# VoxCity
|
|
71
75
|
|
|
@@ -15,7 +15,7 @@ voxcity/exporter/magicavoxel.py,sha256=Fsv7yGRXeKmp82xcG3rOb0t_HtoqltNq2tHl08xVl
|
|
|
15
15
|
voxcity/exporter/obj.py,sha256=0RBFPMKGRH6uNmCLIwAoYFko1bOZKtTSwg7QnoPMud0,21593
|
|
16
16
|
voxcity/geoprocessor/__init_.py,sha256=JzPVhhttxBWvaZ0IGX2w7OWL5bCo_TIvpHefWeNXruA,133
|
|
17
17
|
voxcity/geoprocessor/draw.py,sha256=8Em2NvazFpYfFJUqG9LofNXaxdghKLL_rNuztmPwn8Q,13911
|
|
18
|
-
voxcity/geoprocessor/grid.py,sha256=
|
|
18
|
+
voxcity/geoprocessor/grid.py,sha256=cJRJqxxL9i-QEyy0eETHLj6WMowWzGJoz7w8RUAxXOw,44452
|
|
19
19
|
voxcity/geoprocessor/mesh.py,sha256=r3cRPLgpbhjwgESBemHWWJ5pEWl2KdkRhID6mdLhios,11171
|
|
20
20
|
voxcity/geoprocessor/network.py,sha256=opb_kpUCAxDd1qtrWPStqR5reYZtVe96XxazNSen7Lk,18851
|
|
21
21
|
voxcity/geoprocessor/polygon.py,sha256=8Vb2AbkpKYhq1kk2hQMc-gitmUo9pFIe910v4p1vP2g,37772
|
|
@@ -29,9 +29,9 @@ voxcity/utils/lc.py,sha256=RwPd-VY3POV3gTrBhM7TubgGb9MCd3nVah_G8iUEF7k,11562
|
|
|
29
29
|
voxcity/utils/material.py,sha256=Vt3IID5Ft54HNJcEC4zi31BCPqi_687X3CSp7rXaRVY,5907
|
|
30
30
|
voxcity/utils/visualization.py,sha256=SF8W7sqvBl3sZbB5noWCY9ic2D34Gq01VZYJ9NDNZ4Y,85237
|
|
31
31
|
voxcity/utils/weather.py,sha256=CFPtoqRTajwMRswswDChwQ3BW1cGsnA3orgWHgz7Ehg,26304
|
|
32
|
-
voxcity-0.4.
|
|
33
|
-
voxcity-0.4.
|
|
34
|
-
voxcity-0.4.
|
|
35
|
-
voxcity-0.4.
|
|
36
|
-
voxcity-0.4.
|
|
37
|
-
voxcity-0.4.
|
|
32
|
+
voxcity-0.4.7.dist-info/licenses/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
|
|
33
|
+
voxcity-0.4.7.dist-info/licenses/LICENSE,sha256=s_jE1Df1nTPL4A_5GCGic5Zwex0CVaPKcAmSilxJPPE,1089
|
|
34
|
+
voxcity-0.4.7.dist-info/METADATA,sha256=_PLiAAo9LdCWLx5ByJTtGHPQZ5KIHtjmCHFUm8QCCfo,25712
|
|
35
|
+
voxcity-0.4.7.dist-info/WHEEL,sha256=tTnHoFhvKQHCh4jz3yCn0WPTYIy7wXx3CJtJ7SJGV7c,91
|
|
36
|
+
voxcity-0.4.7.dist-info/top_level.txt,sha256=00b2U-LKfDllt6RL1R33MXie5MvxzUFye0NGD96t_8I,8
|
|
37
|
+
voxcity-0.4.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|