Calculates squareness of each object in given GeoDataFrame.
Uses only external shape (shapely.geometry.exterior), courtyards are not
where \(d\) is the deviation of angle of corner \(i\) from 90 degrees.
Adapted from [DPR+17].
Returns np.nan for MultiPolygons.
GeoDataFrame containing objects
if True, shows progress bars in loops and indication of steps
>>> buildings_df['squareness'] = momepy.Squareness(buildings_df).series
100%|██████████| 144/144 [00:01<00:00, 129.49it/s]
Series containing resulting values
Initialize self. See help(type(self)) for accurate signature.