For any kind of morphometric analysis, data needs to be provided as
GeoDataFrames. Results of morphometric analysis from
be generally returned as pandas
Series to be added as a column of
GeoDataFrame. All the detailes and attributes of each class
are clearly described in the API.
Morphometric functions available in
momepy could be divided into
four different groups based on their approach to data requirements and
Simple morphometric characters are using single
GeoDataFrameas a source of the data.
Relational characters are based on relations between two or more
GeoDataFrames. Typical example is
AreaRatio, which requires a) features to be covered (e.g. land unit) and b) features which are covering them (e.g. buildings).
Network analysis (
graphmodule) characters are based on
networkx.Graphwith additional node or edge attributes.
Additional modules (
utils) cover functions
generating new morphological elements (like morphological tessellation)
or links between them. For details, please refer to the API.
The majority of functions used within
momepy are not limited to one type
of morphological element. However, the whole package is built with a
specific set of elements in mind, based on the research done at the
University of Strathclyde by the Urban Design Studies Unit. This is
true especially for morphological tessellation, partitioning of space
based on building footprints. Morphological tessellation can substitute
plots for certain types of analysis and provide additional information,
like the adjacency, for the other. More information on tessellation is
in dedicated section of this guide.
Generally, we can work with any kind of morphological element which fits the selected function, there is no restriction. Sometimes, where documentation refers to buildings, other elements like blocks can be used as well as long as the principle remains the same.
For example, you can use
momepy to do morphometric analysis of:
Unique IDs are also used as an ID within spatial weights matrices. Thanks to this, spatial weights generated on morphological tessellation (like Queen contiguity) can be directly used on buildings and vice versa. Detailed information on using spatial weights within momepy will be discussed later.