Using Spatial Graph

To capture patterns in urban form, we have to analyze morphometric characters within a spatial context, taking neighbouring elements into account. A simple example could be a mean height within 100 metres, measured as a location-based character for each building. momepy uses the libpysal spatial graph to capture the relationship between elements, in this case buildings, in the form of a binary matrix (1 = neighbours, 0 = not neighbours). Spatial graphs are an essential part of momepy and are used on many occasions and in various forms.

This section covers: