Vacant Area
[1]:
from blocksnet import City, VacantArea
city = City.from_pickle('../data/model.pickle')
[14]:
va = VacantArea(city_model=city)
block = city[3506]
result = va.calculate([block])
Error encountered: No data elements in server response. Check log and query location/tags.
Error encountered: No data elements in server response. Check log and query location/tags.
/home/vasilstar/masterplanning/.venv/lib/python3.10/site-packages/geopandas/geodataframe.py:2452: UserWarning: `keep_geom_type=True` in overlay resulted in 136 dropped geometries of different geometry types than df1 has. Set `keep_geom_type=False` to retain all geometries
return geopandas.overlay(
[15]:
result.head()
[15]:
geometry | area | mrr_area | length | area_to_length | area_to_mrr_area | block_id | |
---|---|---|---|---|---|---|---|
0 | POLYGON ((345743.868 6648301.559, 345743.925 6... | 921.892872 | 998.893658 | 157.558109 | 5.851129 | 0.922914 | 3506 |
1 | POLYGON ((345905.852 6647864.377, 345905.952 6... | 840.567641 | 1350.491811 | 205.377513 | 4.092793 | 0.622416 | 3506 |
[16]:
result.explore()
[16]:
Make this Notebook Trusted to load map: File -> Trust Notebook