momepy.
PerimeterWall
(gdf, spatial_weights=None)[source]¶Calculate the perimeter wall length the joined structure.
GeoDataFrame containing objects to analyse
spatial weights matrix - If None, Queen contiguity matrix will be calculated based on gdf. It is to denote adjacent buildings (note: based on index, not ID).
Notes
It might take a while to compute this character.
Examples
>>> buildings_df['wall_length'] = mm.PerimeterWall(buildings_df).series
Calculating spatial weights...
Spatial weights ready...
100%|██████████| 144/144 [00:00<00:00, 4171.39it/s]
Series containing resulting values
original GeoDataFrame
spatial weights matrix
__init__
(self, gdf, spatial_weights=None)[source]¶Initialize self. See help(type(self)) for accurate signature.
Methods
|
Initialize self. |