https://github.com/arup-group/osmox
A tool for extracting facility locations and features from OpenStreetMap (OSM) data
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.6%) to scientific vocabulary
Keywords
Repository
A tool for extracting facility locations and features from OpenStreetMap (OSM) data
Basic Info
Statistics
- Stars: 40
- Watchers: 7
- Forks: 6
- Open Issues: 12
- Releases: 2
Topics
Metadata Files
README.md
OSMOX
A tool for extracting locations and features from OpenStreetMap (OSM) data.
Why?
We use OSMOX to extract locations from OSM for city or national scale agent-based models. In particular, the focus tends to be on extracting buildings and their designated usages, for example homes, schools, medical facilities and places of work. However, this can also be abstracted to other objects such as transit, parks or land use.
Under the hood, OSMOX is a collection of labelling and GIS-type operations:
- filtering
- activity labelling
- simple spatial activity inference
- feature extraction (such as floor areas)
- filling in missing data
Once assembled, these form part of our wider pipeline. But as a standalone tool, OSMOX is useful for extracting insights from OSM in a reproducible manner.
^ Isle of Man distance_to_nearest_transit.
Documentation
For more detailed instructions, see our documentation.
Installation
OSMOX can be installed in Python environments from version 3.10 upwards.
Note: you can use the instructions here to build a Docker image for OSMOX and run it in a container if you cannot install it locally. This builds in a Python 3.12 environment.
As a user (Docker image)
shell
git clone git@github.com:arup-group/osmox.git
cd osmox
docker build -t "osmox" .
As a user (Python package)
To install osmox, we recommend using the mamba package manager:
shell
git clone git@github.com:arup-group/osmox.git
cd osmox
mamba create -n osmox -c conda-forge -c city-modelling-lab --file requirements/base.txt
mamba activate osmox
pip install --no-deps .
<!--- --8<-- [end:docs-install-user] -->
As a developer
shell
git clone git@github.com:arup-group/osmox.git
cd osmox
mamba create -n osmox -c conda-forge -c city-modelling-lab --file requirements/base.txt --file requirements/dev.txt
mamba activate osmox
pip install --no-deps -e .
<!--- --8<-- [end:docs-install-dev] -->
For more detailed instructions, see our documentation.
Contributing
There are many ways to contribute to osmox. Before making contributions to the osmox source code, see our contribution guidelines and follow the development install instructions.
If you plan to make changes to the code then please make regular use of the following tools to verify the codebase while you work:
pre-commit: runpre-commit installin your command line to load inbuilt checks that will run every time you commit your changes. The checks are: 1. check no large files have been staged, 2. lint python files for major errors, 3. format python files to conform with the pep8 standard. You can also run these checks yourself at any time to ensure staged changes are clean by simple callingpre-commit.pytest- run the unit test suite and check test coverage.pytest -p memray -m "high_mem" --no-cov(not available on Windows) - after installing memray (mamba install memray pytest-memray), test that memory and time performance does not exceed benchmarks.
For more information, see our documentation.
Building the documentation
If you are unable to access the online documentation, you can build the documentation locally. First, install a development environment of osmox, then deploy the documentation using mike:
mike deploy develop
mike serve
Then you can view the documentation in a browser at http://localhost:8000/.
Owner
- Name: Arup
- Login: arup-group
- Kind: organization
- Email: media@arup.com
- Website: https://www.arup.com/
- Repositories: 168
- Profile: https://github.com/arup-group
We Shape a Better World
GitHub Events
Total
- Issues event: 2
- Watch event: 3
- Delete event: 1
- Issue comment event: 1
- Push event: 12
- Pull request review event: 2
- Pull request review comment event: 2
- Pull request event: 3
- Fork event: 1
- Create event: 1
Last Year
- Issues event: 2
- Watch event: 3
- Delete event: 1
- Issue comment event: 1
- Push event: 12
- Pull request review event: 2
- Pull request review comment event: 2
- Pull request event: 3
- Fork event: 1
- Create event: 1
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 30
- Total pull requests: 46
- Average time to close issues: 7 months
- Average time to close pull requests: 8 days
- Total issue authors: 7
- Total pull request authors: 9
- Average comments per issue: 0.47
- Average comments per pull request: 1.09
- Merged pull requests: 43
- Bot issues: 0
- Bot pull requests: 5
Past Year
- Issues: 5
- Pull requests: 12
- Average time to close issues: 10 days
- Average time to close pull requests: 24 days
- Issue authors: 2
- Pull request authors: 3
- Average comments per issue: 0.0
- Average comments per pull request: 0.25
- Merged pull requests: 10
- Bot issues: 0
- Bot pull requests: 4
Top Authors
Issue Authors
- fredshone (10)
- brynpickering (5)
- mfitz (3)
- gac55 (1)
- manserpa (1)
- ana-kop (1)
- val-ismaili (1)
Pull Request Authors
- brynpickering (18)
- mfitz (7)
- val-ismaili (7)
- pre-commit-ci[bot] (6)
- fredshone (6)
- ana-kop (5)
- Theodore-Chatziioannou (2)
- gac55 (1)
- rorysedgwick (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- mambaorg/micromamba 1.4.3-bullseye-slim build
- Rtree >=1,<2
- click <9
- geopandas >=0.13,<0.15
- osmium <3.7
- pandas >=1.5,<3
- pyproj >=3.1.0,<4
- shapely >=1,<3
- cruft >=2,<3 development
- mike >=2,<3 development
- mkdocs <2 development
- mkdocs-click <0.7 development
- mkdocs-material >=9.4,<10 development
- mkdocstrings-python <2 development
- pre-commit <4 development
- pytest >=8,<9 development
- pytest-cov <5 development
- pytest-mock <4 development
- pytest-timeout <3 development
- pytest-xdist <4 development