Legacy API reference#
Warning
The functionality listed below is part of the legacy API and has been deprecated.
Each class emits FutureWarning
with a deprecation note. If you’d like to
silence all of these warnigns, set an environment variable ALLOW_LEGACY_MOMEPY
to "True"
:
import os
os.environ["ALLOW_LEGACY_MOMEPY"] = "True"
elements#
|
Generate blocks based on buildings, tessellation, and street network. |
|
Snap each element (preferably building) to the closest street network segment and save its ID. |
|
Snap each building to the closest street network node on the closest network edge. |
|
Generates tessellation. |
dimension#
|
Calculates the area of each object in a given GeoDataFrame. |
|
Calculates the average of a character within a set neighbourhood defined in |
|
Calculates area of holes within geometry - area of courtyards. |
|
Calculates the area covered by neighbours, which is total area covered by neighbours defined in |
|
Calculates floor area of each object based on height and area. |
|
Calculates the length of the longest axis of object. |
|
Calculates perimeter of each object in a given GeoDataFrame. |
|
Calculate the perimeter wall length of the joined structure. |
|
Calculate the cummulative and/or mean length of segments. |
|
Calculates the street profile characters. |
|
Calculates the volume of each object in a given GeoDataFrame based on its height and area. |
|
Calculates the weighted character. |
shape#
|
Calculates the mean distance centroid - corners and standard deviation. |
|
Calculates the compactness index of each object in a given GeoDataFrame. |
|
Calculates the compactness-weighted axis of each object in a given GeoDataFrame. |
|
Calculates the Convexity index of each object in a given GeoDataFrame. |
|
Calculates the number of corners of each object in a given GeoDataFrame. |
|
Calculates the courtyard index of each object in a given GeoDataFrame. |
|
Calculates the elongation of each object seen as elongation of its minimum bounding rectangle. |
|
Calculates the equivalent rectangular index of each object in a given GeoDataFrame. |
|
Calculates the form factor of each object in a given GeoDataFrame. |
|
Calculates fractal dimension of each object in given GeoDataFrame. |
|
Calculates the linearity of each LineString object in a given GeoDataFrame. |
|
Calculates the rectangularity of each object in a given GeoDataFrame. |
|
Calculates the shape index of each object in a given GeoDataFrame. |
|
Calculates the compactness index of each object in a given GeoDataFrame. |
|
Calculates the squareness of each object in a given GeoDataFrame. |
|
Calculates the volume/facade ratio of each object in a given GeoDataFrame. |
spatial distribution#
|
Calculate the mean deviation of solar orientation of objects on adjacent cells from an object. |
|
Calculate the level of building adjacency. |
|
Calculate the difference between cell orientation and the orientation of object. |
|
Calculate the mean interbuilding distance. |
|
Calculate the mean distance to adjacent buildings (based on |
Calculate the mean deviation of solar orientation of adjacent streets. |
|
|
Calculate the number of neighbours captured by |
|
Calculate the orientation of object. |
|
Calculate the length of shared walls of adjacent elements (typically buildings). |
|
Calculate shared walls ratio of adjacent elements (typically buildings). |
|
Calculate the difference between street orientation and orientation of another object in degrees. |
intensity#
|
Calculate covered area ratio or floor area ratio of objects. |
|
Calculates the weighted number of blocks. |
|
Calculate the number of elements within an aggregated structure. |
|
Calculate the number of courtyards within the joined structure. |
|
Calculate the gross density. |
|
Calculate the density of nodes neighbours on street network defined in |
|
Calculates the number of objects reached within neighbours on a street network. |
diversity#
|
Calculates the Gini index of values within neighbours defined in |
|
Calculates the percentiles of values within neighbours defined in |
|
Calculates the range of values within neighbours defined in |
|
Calculates the Shannon index of values within neighbours defined in |
|
Calculates the Simpson's diversity index of values within neighbours defined in |
|
Calculates the Theil measure of inequality of values within neighbours defined in |
|
Calculates the number of unique values within neighbours defined in |
spatial weights#
|
On demand distance-based spatial weights-like class. |
|
Generate spatial weights based on Queen or Rook contiguity of order |
preprocessing#
|
Preprocesses building geometry to eliminate additional structures being single features. |
utilities#
|
Extract values within selected range. |
|
Add an attribute with a unique ID to each row of a GeoDataFrame. |