diff --git a/Makefile b/Makefile index eb42337..7c3e269 100644 --- a/Makefile +++ b/Makefile @@ -43,3 +43,9 @@ brouter-data: cd ./docker/brouter/brouter-web; cp keys.template.js keys.js; cd ./docker/brouter/brouter-web; cp config.template.js config.js cd ./docker/brouter; docker compose build + +osm_edit_import_pbf: + cd ./docker/osm_edit/; wget https://download.geofabrik.de/north-america/us/wisconsin-latest.osm.pbf -O ./osm-data/wisconsin-latest.osm.pbf + cd ./docker/osm_edit/; rm -rf ./docker-osmosis; git clone https://github.com/bvarick/docker-osmosis.git + cd ./docker/osm_edit/; docker build -t osmosis ./docker-osmosis + cd ./docker/osm_edit/; docker run -v ./osm-data:/osm-data osmosis osmosis --read-pbf "/osm-data/wisconsin-latest.osm.pbf" --write-xml file="/osm-data/wisconsin-latest.osm" diff --git a/docker/osm_edit/.gitignore b/docker/osm_edit/.gitignore new file mode 100644 index 0000000..e95cb01 --- /dev/null +++ b/docker/osm_edit/.gitignore @@ -0,0 +1,9 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore + +# Except Dockerfile +!Dockerfile + +!osm-data/ diff --git a/docker/osm_edit/osm-data/.gitignore b/docker/osm_edit/osm-data/.gitignore new file mode 100644 index 0000000..5e7d273 --- /dev/null +++ b/docker/osm_edit/osm-data/.gitignore @@ -0,0 +1,4 @@ +# Ignore everything in this directory +* +# Except this file +!.gitignore