momepy.equivalent_rectangular_index#
- momepy.equivalent_rectangular_index(geometry)[source]#
Calculates the equivalent rectangular index of each object given its geometry.
\[\sqrt{{area} \over \textit{area of bounding rectangle}} * {\textit{perimeter of bounding rectangle} \over {perimeter}}\]Based on [Basaraner and Cetinkaya, 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.equivalent_rectangular_index(buildings) 0 0.787923 1 0.443137 2 0.954252 3 0.851658 4 0.957543 ... 139 1.000050 140 0.907837 141 0.813269 142 0.995926 143 0.999999 Length: 144, dtype: float64