Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.49 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.49 KB

osmtools

Command line tools to work with OSM files in docker.

Image description

This image contains the following comand line utilities:

  • osmconvert - can be used to convert and process OpenStreetMap files.
  • osmfilter - is a command line tool used to filter OpenStreetMap data files for specific tags.
  • osmupdate - downloads and cumulates OSM Changefiles of different categories (minutely, hourly, daily).

How to use this image

Prepare yours data:

mkdir -p /data/osm-data
wget http://download.geofabrik.de/europe/monaco-latest.osm.pbf -O /data/osm-data/monaco.osm.pbf

Mount host directory with data into container /osm and work with osmconvert osmfilter or osmupdate utils.

Retrieving Statistical Data

docker run --rm  -it --volume /data/osm-data:/osm mediagis/osmtools osmconvert --out-statistics monaco.osm.pbf

Convert from osm.pbf to o5m

docker run --rm  -it --volume /data/osm-data:/osm mediagis/osmtools osmconvert monaco.osm.pbf -o=monaco.o5m

List of all keys sorted by occurrence

docker run --rm  -it --volume /data/osm-data:/osm mediagis/osmtools osmfilter --out-count monaco.o5m

User Feedback

Issues

If you have any problems or questions about this image, please contact me through a issue or email [email protected].