momepy.
CourtyardArea
Calculates area of holes within geometry - area of courtyards.
Ensure that your geometry is shapely.geometry.Polygon.
shapely.geometry.Polygon
GeoDataFrame containing objects to analyse
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.
np.array
pd.Series
Examples
>>> buildings['courtyard_area'] = momepy.CourtyardArea(buildings).series >>> buildings.courtyard_area[80] 353.33274206543274
Series containing resulting values
original GeoDataFrame
Series containing used areas values
__init__
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(gdf[, areas])
Initialize self.