OSMsc
updated 21 Sep 2023
This repo develops an easy-to-use Python package, named OSMsc, to improve the availability, consistency and generalizability of urban semantic data.
OSMsc v0.2.0 is coming!
Photo by Abigail Keenan on Unsplash
The main contributions of OSMsc:
- Construct semantic city objects based on the public dataset (OpenStreetMap), and apply geometric operations to build more complete city objects;
- Fuse 3D and tag information from multiple data sources through the spatial analysis between OSMsc layers and other non-OSM data layers;
- Propose the semantic connector(UrbanTile), and supplement the spatial semantics;
- Output the CityJSON-formatted semantic city models.
OSMsc workflow
Semantic city model generated by OSMsc
Installation
Install from Github
git clone https://github.com/ruirzma/osmsc.git
cd osmsc/
pip install .
or python setup.py install
Install from PyPi
pip install osmsc
Note:
-
OSMnx should be installed before OSMsc, installation errors of OSMnx could be resolved in the latest OSMnx documentation.
-
If installing OSMnx manually, you can download the Python extension packages (Rtree, GDAL, Fiona, rasterio, etc.) from here for Windows and Homebrew🍺 for MacOS.
Examples
Reference
1. Geoff Boeing, OSMnx, https://github.com/gboeing/osmnx
2. Nick Bristow, OSMuf, https://github.com/AtelierLibre/osmuf
3. Joris Van den Bossche, GeoPandas, https://github.com/geopandas/geopandas