momepy.
Elongation
Calculates elongation of object seen as elongation of its minimum bounding rectangle.
where a is the area of the object and p its perimeter.
Based on [GMBeiraoD12].
GeoDataFrame containing objects
Examples
>>> buildings_df['elongation'] = momepy.Elongation(buildings_df).series >>> buildings_df['elongation'][0] 0.9082437463675544
Series containing resulting values
original GeoDataFrame
__init__
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(gdf)
Initialize self.