momepy.Corners#

class momepy.Corners(gdf, verbose=True)[source]#

Calculates the number of corners of each object in a given GeoDataFrame. Uses only external shape (shapely.geometry.exterior), courtyards are not included.

\[\sum corner\]
Parameters
gdfGeoDataFrame

A GeoDataFrame containing objects.

verbosebool (default True)

If True, shows progress bars in loops and indication of steps.

Examples

>>> buildings_df['corners'] = momepy.Corners(buildings_df).series
100%|██████████| 144/144 [00:00<00:00, 1042.15it/s]
>>> buildings_df.corners[0]
24
Attributes
seriesSeries

A Series containing resulting values.

gdfGeoDataFrame

The original GeoDataFrame.

__init__(gdf, verbose=True)[source]#

Methods

__init__(gdf[, verbose])