build network with gmns format using .osm file from openstreetmap
Project description
OSM2GMNS is an open-source python package which can help users easily convert networks from OpenStreetMap to .csv files with standard GMNS format for visualization, traffic simulation and planning purpose.
Install
Install OSM2GMNS via pip:
$ pip install osm2gmns
Simple example
Get network from map.osm file and consolidate complex intersections
>>> import osm2gmns as og
>>> net = og.getNetFromOSMFile('map.osm')
>>> og.outputNetToCSV(net)
# check and modify (if necessary) network files before complex intersection consolidation
>>> net = og.getNetFromCSV()
>>> og.consolidateComplexIntersections(net)
>>> og.outputNetToCSV(net, output_folder='consolidated')
Visualization
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file osm2gmns-0.1.1.tar.gz.
File metadata
- Download URL: osm2gmns-0.1.1.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89389ba408cf87cc7a6985988f9aa305f3bbacde014b60d7b86f88140b2505ba
|
|
| MD5 |
451321a93cbdce92f17a4360a773c50a
|
|
| BLAKE2b-256 |
af8b089ee4306aba60b900bd4e703b3a306158d0eab3567193d82f391b2b01c0
|
File details
Details for the file osm2gmns-0.1.1-py3-none-any.whl.
File metadata
- Download URL: osm2gmns-0.1.1-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
617de20087708ed07f6603a147a998a91f83bdeece88cf26cfb1f3fa70a221d9
|
|
| MD5 |
7c3cd1e6b8b3ed2f2e3a4d641bbe038e
|
|
| BLAKE2b-256 |
5eba5e9b681f7f1659e4606d98f5de64e58f559f9f609ea00c348c2b7fafb7b1
|