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 details)

Uploaded Source

Built Distributions

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

Uploaded Source

osmx-0.0.4-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file osmx-0.0.4.tar.gz.

File metadata

  • Download URL: osmx-0.0.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

File hashes

Hashes for osmx-0.0.4.tar.gz
Algorithm Hash digest
SHA256 45044ed5b03f3fa8d7bc78b719b3f2e24c8975684ae3e1b46984a32f45dbf421
MD5 071aa6ef9a048b0405118018ac84d210
BLAKE2b-256 a5e798d7696d2432e23d438b7897ff695a937110d1e8b782b9d0400e7e2287c7

See more details on using hashes here.

File details

Details for the file osmx-0.0.4-py3.7.egg.

File metadata

  • Download URL: osmx-0.0.4-py3.7.egg
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

File hashes

Hashes for osmx-0.0.4-py3.7.egg
Algorithm Hash digest
SHA256 07c0db58f213fe7c69e11eec9bd37604396e2135eeaa818e7fc402df9c89c726
MD5 bf95c2e3539b2a46b66fb78990e7b9cb
BLAKE2b-256 4fd5024755847fbed431cb079b0d0a7b8b524beaec5b0eeea1210b35d73f4cb0

See more details on using hashes here.

File details

Details for the file osmx-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: osmx-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.6

File hashes

Hashes for osmx-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d2baa6c06bbb952a7e25c36dc4931d406be54c4aa5abe75d2a70144a718da925
MD5 6d07bd6a04cc448d74dc17aa049a07d4
BLAKE2b-256 7f32babb950d1a4d9dcf3f04b6947626a13fc63c002609991208ea82af9f4952

See more details on using hashes here.

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