Skip to main content

Read OSM Express (.osmx) database files.

Project description

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

Installation

pip install osmx

Usage

examples/read_way.py : Simple program: given a way ID, print the coordinates of its member nodes, its metadata and all the relations it directly belongs to.

examples/web_server.py Uses only the Python standard library; starts an HTTP server that takes a url like /way/WAY_ID and returns a GeoJSON feature for that OSM object. Shows example of how to descend into relation members.

examples/augmented_diff.py Creates an augmented diff similar to those implemented by Overpass API, but limited to a single OsmChange (.osc) replication sequence file. Requires that the OSMX database represents the replication sequence state directly before that of the .OSC file.

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

Uploaded Source

Built Distribution

osmx-0.0.5-py3-none-any.whl (3.2 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