momepy.
LongestAxisLength
(gdf)[source]¶Calculates the length of the longest axis of object.
Axis is defined as a diameter of minimal circumscribed circle around the convex hull. It does not have to be fully inside an object.
GeoDataFrame containing objects to analyse
Examples
>>> buildings['lal'] = momepy.LongestAxisLength(buildings).series
>>> buildings.lal[0]
40.2655616057102
Series containing resulting values
original GeoDataFrame
Methods
|
Initialize self. |