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.

Files for osmx, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size osmx-0.0.4-py3.7.egg (4.7 kB) File type Egg Python version 3.7 Upload date Hashes View
Filename, size osmx-0.0.4-py3-none-any.whl (3.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size osmx-0.0.4.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page