Skip to main content

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 networkx as nx
>>> 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

You can visualize generated networks using NeXTA or QGis.

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

osm2gmns-0.0.6.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

osm2gmns-0.0.6-py3-none-any.whl (14.3 kB view hashes)

Uploaded Python 3

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