momepy.Area

momepy.Area(gdf)[source]

Calculates the area of each object in a given GeoDataFrame. It can be used for any suitable element (building footprint, plot, tessellation, block). It is a simple wrapper for GeoPandas .area for the consistency of momepy.

Parameters:
gdfGeoDataFrame

A GeoDataFrame containing objects to analyse.

Attributes:
seriesSeries

A Series containing resulting values.

gdfGeoDataFrame

The original GeoDataFrame.

Examples

>>> buildings = gpd.read_file(momepy.datasets.get_path('bubenec'),
...                           layer='buildings')
>>> buildings['area'] = momepy.Area(buildings).series
>>> buildings.area[0]
728.5574947044363