momepy.
Convexeity
(gdf, areas=None)[source]¶Calculates convexeity index of each object in given geoDataFrame.
GeoDataFrame containing objects
the name of the dataframe column, np.array, or pd.Series where is stored area value. If set to None, function will calculate areas during the process without saving them separately.
References
Dibble, J. (2016) Urban Morphometrics: Towards a Quantitative Science of Urban Form. University of Strathclyde.
Examples
>>> buildings_df['convexeity'] = momepy.Convexeity(buildings_df).series
>>> buildings_df.convexeity[0]
0.8151964258521672
Series containing resulting values
original GeoDataFrame
Series containing used area values
__init__
(self, gdf, areas=None)[source]¶Initialize self. See help(type(self)) for accurate signature.
Methods
|
Initialize self. |