momepy.
Elongation
(gdf)[source]¶Calculates elongation of object seen as elongation of its minimum bounding rectangle.
where a is the area of the object and p its perimeter.
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).e
100%|██████████| 144/144 [00:00<00:00, 1032.62it/s]
>>> buildings_df['elongation'][0]
0.9082437463675544
Series containing resulting values
original GeoDataFrame
Methods
|
Initialize self. |