# momepy.LongestAxisLength¶

class 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.

$\max \left\{d_{1}, d_{2}, \ldots, d_{n}\right\}$
Parameters
gdfGeoDataFrame

GeoDataFrame containing objects to analyse

Examples

>>> buildings['lal'] = momepy.LongestAxisLength(buildings).series
>>> buildings.lal[0]
40.2655616057102

Attributes
seriesSeries

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.