Skip to main content

Urban Morphology Measuring Toolkit

Project description

momepy

Documentation Status Actions Status codecov CodeFactor DOI

Introduction

Momepy is a library for quantitative analysis of urban form - urban morphometrics. It is built on top of GeoPandas, PySAL and networkX.

momepy stands for Morphological Measuring in Python

Some of the functionality that momepy offers:

  • Measuring dimensions of morphological elements, their parts, and aggregated structures.
  • Quantifying shapes of geometries representing a wide range of morphological features.
  • Capturing spatial distribution of elements of one kind as well as relationships between different kinds.
  • Computing density and other types of intensity characters.
  • Calculating diversity of various aspects of urban form.
  • Capturing connectivity of urban street networks
  • Generating relational elements of urban form (e.g. morphological tessellation)

Momepy aims to provide a wide range of tools for a systematic and exhaustive analysis of urban form. It can work with a wide range of elements, while focused on building footprints and street networks.

Comments, suggestions, feedback, and contributions, as well as bug reports, are very welcome.

Getting Started

Quick and easy getting started guide is part of the User Guide.

Documentation

Documentation of momepy is available at docs.momepy.org.

User Guide

User guide with examples of momepy usage is available at guide.momepy.org.

Examples

coverage = momepy.AreaRatio(tessellation, buildings, left_areas=tessellation.area,
                            right_areas='area', unique_id='uID')
tessellation['CAR'] = coverage.series

Coverage Area Ratio

area_simpson = momepy.Simpson(tessellation, values='area',
                              spatial_weights=sw3,
                              unique_id='uID')
tessellation['area_simpson'] = area_simpson.series

Local Simpson's diversity of area

G = momepy.straightness_centrality(G)

Straightness centrality

How to cite

To cite momepy please use following software paper published in the JOSS.

Fleischmann, M. (2019) ‘momepy: Urban Morphology Measuring Toolkit’, Journal of Open Source Software, 4(43), p. 1807. doi: 10.21105/joss.01807.

BibTeX:

@article{fleischmann_2019,
    author={Fleischmann, Martin},
    title={momepy: Urban Morphology Measuring Toolkit},
    journal={Journal of Open Source Software},
    year={2019},
    volume={4},
    number={43},
    pages={1807},
    DOI={10.21105/joss.01807}
}

Install

You can install momepy using Conda from conda-forge (recommended):

conda install -c conda-forge momepy

or from PyPI using pip:

pip install momepy

See the installation instructions for detailed instructions. Momepy depends on python geospatial stack, which might cause some dependency issues.

Contributing to momepy

Contributions of any kind to momepy are more than welcome. That does not mean new code only, but also improvements of documentation and user guide, additional tests (ideally filling the gaps in existing suite) or bug report or idea what could be added or done better.

All contributions should go through our GitHub repository. Bug reports, ideas or even questions should be raised by opening an issue on the GitHub tracker. Suggestions for changes in code or documentation should be submitted as a pull request. However, if you are not sure what to do, feel free to open an issue. All discussion will then take place on GitHub to keep the development of momepy transparent.

If you decide to contribute to the codebase, ensure that you are using an up-to-date master branch. The latest development version will always be there, including the documentation (powered by sphinx).

Details are available in the documentation.

Get in touch

If you have a question regarding momepy, feel free to open an issue on GitHub. Eventually, you can contact us on dev@momepy.org.

Acknowledgements

Initial release of momepy was a result of a research of Urban Design Studies Unit (UDSU) supported by the Axel and Margaret Ax:son Johnson Foundation as a part of “The Urban Form Resilience Project” in partnership with University of Strathclyde in Glasgow, UK. Further development was supported by Geographic Data Science Lab of the University of Liverpool wihtin Urban Grammar AI research project.


Copyright (c) 2018- Martin Fleischmann

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

momepy-0.4.0.tar.gz (251.8 kB view details)

Uploaded Source

Built Distribution

momepy-0.4.0-py3-none-any.whl (238.8 kB view details)

Uploaded Python 3

File details

Details for the file momepy-0.4.0.tar.gz.

File metadata

  • Download URL: momepy-0.4.0.tar.gz
  • Upload date:
  • Size: 251.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for momepy-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a7c1dc07fc3c9e952ca48ddf0efbbd320a8e5c2b395b1530ce2cc182dde7127f
MD5 2a4ce92f00f328bf002dbdccdb0ea4ea
BLAKE2b-256 df185bfd5d7f1d76e17c35d695b6fd7a66b2fa881e78ac0ea489409c9459dfcd

See more details on using hashes here.

Provenance

File details

Details for the file momepy-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: momepy-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 238.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.7

File hashes

Hashes for momepy-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1c9a1b038f070199bf38f3bf8850edcaa8e692a23a0b85e922157e930a3ceb1
MD5 13f7469bd0575ec05aae1ef9610e35b1
BLAKE2b-256 2d9c1446a293cdf2b8869dc39e4165e992b76e4797d3277fc31a500275f4b3f9

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page