Skip to main content

Read OSM Express (.osmx) database files.

Project description

A Python package to read OSM Express (.osmx) database files.

Right now, only access to nodes, ways and relations by ID is supported.

Installation

pip install osmx

Usage

import sys
import osmx

env  = osmx.Environment('your_database.osmx')
txn = osmx.Transaction(env)
locations = osmx.Locations(txn)
nodes = osmx.Nodes(txn)
ways = osmx.Ways(txn)

way = ways.get(123456)

for node_id in way.nodes:
	print(locations.get(node_id))

print(osmx.tag_dict(way.tags))

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

osmx-0.0.4.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distributions

osmx-0.0.4-py3.7.egg (4.7 kB view hashes)

Uploaded Source

osmx-0.0.4-py3-none-any.whl (3.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