Skip to main content

PyPI version

OpenStreetMap clipper

Small python tool to clip pre-defined areas from large osm.pbf files, using osmconvert or osmosis.

The tool is at the moment specifically written to split OpenStreetMap Protocolbuffer Binary Format (PBF) files into a set of countries and/or regions, based on the GADM36 classification. Future versions will allow for user-defined regional classifications as well.

Please note: This package is still in development phase. In case of any problems, or if you have any suggestions for improvements, please raise an issue.

Installation

  1. Open the python environment in your command prompt or bash in which you want to install this package.
  2. Type pip install osm-clipper and it should install itself into your python environment.
  3. Now you can import the package like any other package!

OR:

  1. Clone the repository or download the package on your computer and extract the folder.
  2. Go to the osm_clipper folder in your command prompt or bash.
  3. Type python setup.py install and it should install itself into your python environment.
  4. Now you can import the package like any other package!

Dependency on osmcovert or osmosis

In essence, osm_clipper is just a wrapper around osmconvert and osmosis. To make it work, make sure you add either osmconvert or osmosis to your environmental variables.

How to set environmental variables on Windows:

  1. Search for Edit the System Environmental Variables and click on it.
  2. Click on the Environmental Variables button.
  3. Search in your System variables for Path.
  4. Click on the New button and add the location of osmconvert and/or osmosis.

NOTE: the default is osmconvert. If you want to use osmosis, specify osmconvert==False in the single_countries or all_countries functions.

License

Copyright (C) 2020 Elco Koks. All versions released under the MIT license.

IVM

Metadata

Release files for osm-clipper 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for osm-clipper 0.1.0
File Size Uploaded Provenance Actions
osm_clipper-0.1.0.tar.gz 11.1 kB Without provenance Details for osm_clipper-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for osm-clipper 0.1.0
File Interpreter ABI Platform Actions
osm_clipper-0.1.0-py3-none-any.whl Python 3 none any Details for osm_clipper-0.1.0-py3-none-any.whl

Total release size: 22.9 kB

Release files / osm_clipper-0.1.0.tar.gz

Download URL osm_clipper-0.1.0.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7e0591711ba531c1acf7de2d0f79a5c7db64d8838cb1902e431139128c76d4b1
BLAKE2b-256 checksum
How to use checksums
14795a274e63685ac05bb5fe2617ac47184f0bbf3b69badcefaa0ec4b7606c7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0.post20200704 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / osm_clipper-0.1.0-py3-none-any.whl

Download URL osm_clipper-0.1.0-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef5dad35592f6f0985d4e9c9440b34148cb44fcd2bf0c7d53f62da1b31d11f3f
BLAKE2b-256 checksum
How to use checksums
5ccaa104ce54c1401017039e18d8f9c947bda9d0463f6b604acabc4b8b3b4d48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0.post20200704 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Security for osm-clipper 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page