You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. a full path to a directory you want to use for accessing and writing files to from the container (i.e. Input and output files). Depending on how you installed/run Docker, this folder might need full read/write permissions for other users (e.g. run `chmod 777`).
58
+
59
+
The `docker_run.sh`command will launch the container itself, including the necessary postgres database etc.
60
+
It will also create two virtual docker volumes (named `pgdata` and `osm_data`).
61
+
These volumes are used to store external data, i.e. the database contents and the `openstreetmap-carto` external files.
62
+
63
+
Once the docker container is running, you can connect into it to get a bash inside to run the commands as outlined below using:
64
+
65
+
```bash
66
+
docker exec -ti map-before-after bash
67
+
```
68
+
69
+
The resulting shell puts you into the equivalent of the root of this repository, in a folder called `/workdir`. From there you can use this repository as outlined below.
70
+
71
+
All output files are saved in the `/workdir` by default, you can from there move them into `/workdir/output` inside the container to access files on your host operating system.
72
+
73
+
A [ready-built image is available on Docker Hub](https://hub.docker.com/r/gedankenstuecke/osm-mapping-party-before-after).
74
+
29
75
## Usage
30
76
31
77
1. Download an OSM history file (`.osh.pbf`) e.g. from [Geofabrik's internal download server](https://osm-internal.download.geofabrik.de/?landing_page=true). You will need to log in with an OSM account.
32
78
1. Calculate the `BBOX` with [BBoxFinder.com](http://bboxfinder.com/).
33
79
1. *Draw a rectangle*
34
80
1. Copy the *Box* value
81
+
1. Make sure coordinates are in `long/lat` format (can be changed in the bottom-right)
0 commit comments