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.3.tar.gz
(2.2 kB
view details)
Built Distributions
osmx-0.0.3-py3.7.egg
(4.5 kB
view details)
osmx-0.0.3-py3-none-any.whl
(2.7 kB
view details)
File details
Details for the file osmx-0.0.3.tar.gz
.
File metadata
- Download URL: osmx-0.0.3.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 033bf6031588db3fbb207728cdb30eea7946015a0e926484a021a53fcdd2bbba |
|
MD5 | 21f99ae222b5761b22122baee723d43c |
|
BLAKE2b-256 | a6471602aa2a1fe5b4f1d93ef769c0c8f953cc90347f13db7c9c94f29f5e07de |
File details
Details for the file osmx-0.0.3-py3.7.egg
.
File metadata
- Download URL: osmx-0.0.3-py3.7.egg
- Upload date:
- Size: 4.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a267ebe6dd7c387ad996f8a5aa18082bff17488027daac7005a943ef3b2bfc8 |
|
MD5 | 79eabb97f599ff005abde51e2371f740 |
|
BLAKE2b-256 | 0594fcc5601e69f2cb14290a8574ec096b5b1607b2fef3d36524921500692de9 |
File details
Details for the file osmx-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: osmx-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6852eee564b986596933925c70c8a8e0a0b8caf3277db0a6e95b19d315d412d8 |
|
MD5 | 57e85a907c49ad803e20a5cdacb626a6 |
|
BLAKE2b-256 | 9fa05efc149609c557cc3c011c1295958bb554e5c105316ed1a7d2fded097105 |