momepy.circular_compactness#
- momepy.circular_compactness(geometry)[source]#
Calculates the circular compactness of each object given its geometry.
\[area \over \textit{area of enclosing circle}\]Adapted from [Dibble et al., 2017].
- Parameters:
- geometryGeoDataFrame | GeoSeries
A GeoDataFrame or GeoSeries containing polygons to analyse.
- Returns:
- Series
Examples
>>> path = momepy.datasets.get_path("bubenec") >>> buildings = geopandas.read_file(path, layer="buildings") >>> momepy.circular_compactness(buildings) 0 0.572145 1 0.390417 2 0.588332 3 0.520411 4 0.591297 ... 139 0.563433 140 0.525733 141 0.404872 142 0.530405 143 0.636387 Length: 144, dtype: float64