momepy.
SharedWalls
Calculate the length of shared walls of adjacent elements (typically buildings)
Note that data needs to be topologically correct. Overlapping polygons will lead to incorrect results.
Adapted from [HLM12].
GeoDataFrame containing gdf to analyse
See also
SharedWallsRatio
Examples
>>> buildings_df['swr'] = momepy.SharedWalls(buildings_df).series
Series containing resulting values
original GeoDataFrame
__init__
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(gdf)
Initialize self.