momepy.Perimeter

class momepy.Perimeter(gdf)[source]

Calculates perimeter of each object in given GeoDataFrame. It can be used for any suitable element (building footprint, plot, tessellation, block).

It is a simple wrapper for GeoPandas .length for the consistency of momepy.

Parameters
gdfGeoDataFrame

GeoDataFrame containing objects to analyse

Examples

>>> buildings = gpd.read_file(momepy.datasets.get_path('bubenec'), layer='buildings')
>>> buildings['perimeter'] = momepy.Perimeter(buildings).series
>>> buildings.perimeter[0]
137.18630991119903
Attributes
seriesSeries

Series containing resulting values

gdfGeoDataFrame

original GeoDataFrame

__init__(self, gdf)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, gdf)

Initialize self.