Calculate the mean interbuilding distance
Interbuilding distances are calculated between buildings on adjacent cells based on
spatial_weights, while the extent is defined in spatial_weights_higher.
GeoDataFrame containing objects to analyse
name of the column with unique id used as spatial_weights index
spatial weights matrix
spatial weights matrix - If None, Queen contiguity of a higher order will be calculated
based on spatial_weights
Order of Queen contiguity
if True, shows progress bars in loops and indication of steps
>>> buildings_df['mean_interbuilding_distance'] = momepy.MeanInterbuildingDistance(buildings_df, sw, 'uID').series
Generating weights matrix (Queen) of 3 topological steps...
Computing mean interbuilding distances...
100%|██████████| 144/144 [00:00<00:00, 317.42it/s]
Series containing resulting values
Series containing used unique ID
Spatial weights matrix of higher order
Order of Queen contiguity (only if spatial_weights_higher was not set)
Initialize self. See help(type(self)) for accurate signature.
__init__(gdf, spatial_weights, unique_id[, …])