voxcity 0.5.3__py3-none-any.whl → 0.5.5__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/generator.py CHANGED
@@ -16,7 +16,6 @@ The main functions are:
16
16
 
17
17
  import numpy as np
18
18
  import os
19
-
20
19
  # Local application/library specific imports
21
20
  from .downloader.mbfp import get_mbfp_gdf
22
21
  from .downloader.osm import load_gdf_from_openstreetmap, load_land_cover_gdf_from_osm
@@ -46,7 +45,9 @@ from .geoprocessor.grid import (
46
45
  create_building_height_grid_from_gdf_polygon,
47
46
  create_dem_grid_from_geotiff_polygon,
48
47
  create_land_cover_grid_from_gdf_polygon,
49
- create_building_height_grid_from_open_building_temporal_polygon
48
+ create_building_height_grid_from_open_building_temporal_polygon,
49
+ create_vegetation_height_grid_from_gdf_polygon,
50
+ create_dem_grid_from_gdf_polygon
50
51
  )
51
52
  from .utils.lc import convert_land_cover, convert_land_cover_array
52
53
  from .geoprocessor.polygon import get_gdf_from_gpkg, save_geojson
@@ -734,6 +735,7 @@ def get_voxcity_CityGML(rectangle_vertices, url_citygml, land_cover_source, cano
734
735
  land_cover_grid = get_land_cover_grid(rectangle_vertices, meshsize, land_cover_source, output_dir, **kwargs)
735
736
 
736
737
  # building_height_grid, building_min_height_grid, building_id_grid, building_gdf = get_building_height_grid(rectangle_vertices, meshsize, building_source, output_dir, **kwargs)
738
+ print("Creating building height grid")
737
739
  building_height_grid, building_min_height_grid, building_id_grid, filtered_buildings = create_building_height_grid_from_gdf_polygon(building_gdf, meshsize, rectangle_vertices, **kwargs)
738
740
 
739
741
  # Visualize grid if requested
@@ -770,6 +772,7 @@ def get_voxcity_CityGML(rectangle_vertices, url_citygml, land_cover_source, cano
770
772
  if kwargs.pop('flat_dem', None):
771
773
  dem_grid = np.zeros_like(land_cover_grid)
772
774
  else:
775
+ print("Creating Digital Elevation Model (DEM) grid")
773
776
  dem_grid = create_dem_grid_from_gdf_polygon(terrain_gdf, meshsize, rectangle_vertices)
774
777
 
775
778
  # Visualize grid if requested
@@ -10,7 +10,8 @@ from scipy.ndimage import label, generate_binary_structure
10
10
  from pyproj import Geod, Transformer, CRS
11
11
  import rasterio
12
12
  from affine import Affine
13
- from shapely.geometry import box
13
+ from shapely.geometry import box, Polygon, Point, MultiPolygon
14
+
14
15
  from scipy.interpolate import griddata
15
16
  from shapely.errors import GEOSException
16
17
  import geopandas as gpd
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: voxcity
3
- Version: 0.5.3
3
+ Version: 0.5.5
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>
@@ -1,5 +1,5 @@
1
1
  voxcity/__init__.py,sha256=el9v3gfybHOF_GUYPeSOqN0-vCrTW0eU1mcvi0sEfeU,252
2
- voxcity/generator.py,sha256=n1iHtM_BQkZSmCIwo0KzRv-bLHzhDSOYvbqhe0lRoB8,42127
2
+ voxcity/generator.py,sha256=w0MUwVBP-TVWIzmYbliGsawowoA-i7CYzvdlzU7GfNA,42323
3
3
  voxcity/downloader/__init__.py,sha256=OgGcGxOXF4tjcEL6DhOnt13DYPTvOigUelp5xIpTqM0,171
4
4
  voxcity/downloader/citygml.py,sha256=phGxEz829mDGXEugs8rTQzARQy-_JyqfcDLMijR4DoM,24467
5
5
  voxcity/downloader/eubucco.py,sha256=XCkkdEPNuWdrnuxzL80Ext37WsgiCiZGueb-aQV5rvI,14476
@@ -16,7 +16,7 @@ voxcity/exporter/magicavoxel.py,sha256=Fsv7yGRXeKmp82xcG3rOb0t_HtoqltNq2tHl08xVl
16
16
  voxcity/exporter/obj.py,sha256=0RBFPMKGRH6uNmCLIwAoYFko1bOZKtTSwg7QnoPMud0,21593
17
17
  voxcity/geoprocessor/__init_.py,sha256=JzPVhhttxBWvaZ0IGX2w7OWL5bCo_TIvpHefWeNXruA,133
18
18
  voxcity/geoprocessor/draw.py,sha256=8Em2NvazFpYfFJUqG9LofNXaxdghKLL_rNuztmPwn8Q,13911
19
- voxcity/geoprocessor/grid.py,sha256=g1go8vvv2q4epnkZIN6CvWieSqxFWtLEYqX5CPw6vUo,56340
19
+ voxcity/geoprocessor/grid.py,sha256=JNTtapcVypZduryGUfOURj_s8rq3ZbtJMapdbmx7PJ0,56372
20
20
  voxcity/geoprocessor/mesh.py,sha256=r3cRPLgpbhjwgESBemHWWJ5pEWl2KdkRhID6mdLhios,11171
21
21
  voxcity/geoprocessor/network.py,sha256=opb_kpUCAxDd1qtrWPStqR5reYZtVe96XxazNSen7Lk,18851
22
22
  voxcity/geoprocessor/polygon.py,sha256=8Vb2AbkpKYhq1kk2hQMc-gitmUo9pFIe910v4p1vP2g,37772
@@ -30,9 +30,9 @@ voxcity/utils/lc.py,sha256=RwPd-VY3POV3gTrBhM7TubgGb9MCd3nVah_G8iUEF7k,11562
30
30
  voxcity/utils/material.py,sha256=Vt3IID5Ft54HNJcEC4zi31BCPqi_687X3CSp7rXaRVY,5907
31
31
  voxcity/utils/visualization.py,sha256=SF8W7sqvBl3sZbB5noWCY9ic2D34Gq01VZYJ9NDNZ4Y,85237
32
32
  voxcity/utils/weather.py,sha256=CFPtoqRTajwMRswswDChwQ3BW1cGsnA3orgWHgz7Ehg,26304
33
- voxcity-0.5.3.dist-info/licenses/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
34
- voxcity-0.5.3.dist-info/licenses/LICENSE,sha256=s_jE1Df1nTPL4A_5GCGic5Zwex0CVaPKcAmSilxJPPE,1089
35
- voxcity-0.5.3.dist-info/METADATA,sha256=MOCifakrQKv-7z7NynNKlhx04vcGO5plzD60DxoEySk,25733
36
- voxcity-0.5.3.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
37
- voxcity-0.5.3.dist-info/top_level.txt,sha256=00b2U-LKfDllt6RL1R33MXie5MvxzUFye0NGD96t_8I,8
38
- voxcity-0.5.3.dist-info/RECORD,,
33
+ voxcity-0.5.5.dist-info/licenses/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
34
+ voxcity-0.5.5.dist-info/licenses/LICENSE,sha256=s_jE1Df1nTPL4A_5GCGic5Zwex0CVaPKcAmSilxJPPE,1089
35
+ voxcity-0.5.5.dist-info/METADATA,sha256=_U2ts1B05uLVSjdckucrHh8-hYL1Q644EH6UOW9tOTg,25733
36
+ voxcity-0.5.5.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
37
+ voxcity-0.5.5.dist-info/top_level.txt,sha256=00b2U-LKfDllt6RL1R33MXie5MvxzUFye0NGD96t_8I,8
38
+ voxcity-0.5.5.dist-info/RECORD,,