Connectivity
[1]:
from blocksnet import City, Connectivity
city = City.from_pickle('../data/model.pickle')
[2]:
connectivity = Connectivity(city_model=city)
result = connectivity.calculate()
[3]:
result.head()
[3]:
geometry | connectivity | |
---|---|---|
id | ||
0 | POLYGON ((354918.622 6625258.829, 354901.464 6... | 84.6875 |
1 | POLYGON ((355412.142 6623378.149, 355411.700 6... | 81.6250 |
2 | POLYGON ((353934.329 6625429.433, 353923.453 6... | 78.5625 |
3 | POLYGON ((355099.099 6623847.765, 355074.808 6... | 81.3125 |
4 | POLYGON ((352766.168 6621954.748, 352744.412 6... | 93.0000 |
[4]:
Connectivity.plot(result, figsize=(10,10))