Skip to main content

convert map data from OpenStreetMap to network files in GMNS format

Project description

OpenStreetMap (OSM) is a free, open-source, editable map website that can provide free download. osm2gmns, as a data conversion tool, can directly convert the OSM map data to node and link network files in GMNS format. Users can convert and model drivable, walkable, railway, or aeroway networks with a single line of Python code.

Installation

pip install osm2gmns

If you meet installation issues, please refer to the user guide for solutions.

Simple example

Get network from osm file and conduct intersection consolidation

>>> import osm2gmns as og

>>> net = og.getNetFromOSMFile('map.osm')
>>> # for large networks, getNetFromPBFFile() is recommended
>>> og.outputNetToCSV(net)

Visualization

You can visualize generated networks using NeXTA or QGis.

User guide

Users can check the user guide for a detailed introduction of osm2gmns.

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.3.3.tar.gz (29.1 kB view hashes)

Uploaded Source

Built Distribution

osm2gmns-0.3.3-py3-none-any.whl (45.0 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