momepy.facade_ratio#
- momepy.facade_ratio(geometry)[source]#
Calculates the facade ratio of each object given its geometry.
\[area \over perimeter\]Adapted from [Schirmer and Axhausen, 2015].
- 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.facade_ratio(buildings) 0 5.310716 1 11.314008 2 5.963959 3 6.376086 4 5.987687 ... 139 1.868981 140 4.046407 141 5.963454 142 1.711740 143 2.734681 Length: 144, dtype: float64