Skip to content

Commit

Permalink
made sure that planet refreshes are well documented
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored May 10, 2024
1 parent 895ae72 commit d5ab812
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions map/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,28 @@ this.

From the root of the repository, run:

```bash
docker run -it -e JAVA_TOOL_OPTIONS="-Xmx10g" -v "$(pwd)/map":/data ghcr.io/onthegomap/planetiler:latest --download --area=bavaria --languages=de,en --Xmx10g --storage=mmap
```

For `planet`, you might want to increase the `--Xmx` parameter to 20GB. For 128GB of RAM or more you will want to
use `--storage=ram` instead of `--storage=mmap`.
- <details><summary>[~minutes] Only <b>Germany</b></summary>

```bash
docker run -it -e JAVA_TOOL_OPTIONS="-Xmx10g" -v "$(pwd)/map":/data ghcr.io/onthegomap/planetiler:latest --download --download-threads=10 --download-chunk-size-mb=1000 --fetch-wikidata --languages=de,en --area=germany --Xmx10g --storage=mmap
```

</details>

- <details><summary>[~hours] <b>Planet</b> with approx 128GB of RAM</summary>

```bash
docker run -it -e JAVA_TOOL_OPTIONS="-Xmx100g" -v "$(pwd)/map":/data ghcr.io/onthegomap/planetiler:latest --download --download-threads=10 --download-chunk-size-mb=1000 --fetch-wikidata --languages=de,en --area=planet --bounds=world --Xmx100g --nodemap-type=sparsearray --nodemap-storage=ram
```

</details>
- <details><summary>[~a day] <b>Planet</b> with lower amounts of RAM (slower)</summary>

```bash
docker run -it -e JAVA_TOOL_OPTIONS="-Xmx20g" -v "$(pwd)/map":/data ghcr.io/onthegomap/planetiler:latest --download --download-threads=10 --download-chunk-size-mb=1000 --fetch-wikidata --languages=de,en --area=planet --bounds=world --Xmx20g --nodemap-type=array --storage=mmap
```

</details>

### Serve the tileset

Expand Down

0 comments on commit d5ab812

Please sign in to comment.