momepy.Elongation

class momepy.Elongation(gdf)[source]

Calculates elongation of object seen as elongation of its minimum bounding rectangle.

\[{{p - \sqrt{p^2 - 16a}} \over {4}} \over {{{p} \over {2}} - {{p - \sqrt{p^2 - 16a}} \over {4}}}\]

where a is the area of the object and p its perimeter.

Parameters
gdfGeoDataFrame

GeoDataFrame containing objects

References

Gil J, Montenegro N, Beirão JN, et al. (2012) On the Discovery of Urban Typologies: Data Mining the Multi-dimensional Character of Neighbourhoods. Urban Morphology 16(1): 27–40.

Examples

>>> buildings_df['elongation'] = momepy.Elongation(buildings_df).series
>>> buildings_df['elongation'][0]
0.9082437463675544
Attributes
eSeries

Series containing resulting values

gdfGeoDataFrame

original GeoDataFrame

__init__(self, gdf)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, gdf)

Initialize self.