momepy.Corners#
- 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.
- Attributes:
- seriesSeries
A Series containing resulting values.
- gdfGeoDataFrame
The original GeoDataFrame.
Examples
>>> buildings_df['corners'] = momepy.Corners(buildings_df).series 100%|██████████| 144/144 [00:00<00:00, 1042.15it/s] >>> buildings_df.corners[0] 24