From ac78d62347d91f3a8951e5a5aff92f58bb378413 Mon Sep 17 00:00:00 2001 From: Ben Varick Date: Wed, 29 Jan 2025 10:15:15 -0600 Subject: [PATCH] added import .pbf to xml --- Makefile | 6 ++++++ docker/osm_edit/.gitignore | 9 +++++++++ docker/osm_edit/osm-data/.gitignore | 4 ++++ 3 files changed, 19 insertions(+) create mode 100644 docker/osm_edit/.gitignore create mode 100644 docker/osm_edit/osm-data/.gitignore 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