[BUG] output doesn't work as expected
Closed this issue · 4 comments
Describe the bug
i want to write pmtiles, but planetiler doesn't write the specified output file
To Reproduce
Steps to reproduce the behavior:
neither docker run -e JAVA_TOOL_OPTIONS="-Xmx4g" -d -v "$(pwd)/data":/data [ghcr.io/onthegomap/planetiler:release](http://ghcr.io/onthegomap/planetiler:release) --download --area=monaco --maxzoom=12 --output=monaco.pmtiles --force
(release)
nor docker run -e JAVA_TOOL_OPTIONS="-Xmx4g" -d -v "$(pwd)/data":/data [ghcr.io/onthegomap/planetiler:latest](http://ghcr.io/onthegomap/planetiler:latest) --download --area=monaco --maxzoom=12 --output=monaco.pmtiles --force
(latest)
doesn't write an output file.
i also tried --output=monaco.mbtiles
without success.
it's only working without the output command (file written: output.mbtiles in data folder).
--output-format=pmtiles
didn't help either.
Expected behavior
i expected an pmtiles file.
Environment (please complete the following information):
- Hardware: kvm virtualized with 4 cores and 16 gb ram
- OS: Debian Bullseye
- Java version and distribution: from docker
Just to confirm are you running:
docker run -e JAVA_TOOL_OPTIONS="-Xmx4g" -d -v "$(pwd)/data":/data ghcr.io/onthegomap/planetiler:latest --download --area=monaco --maxzoom=12 --output=monaco.pmtiles --force
yes the command in the bug report was altered by the markdown editor.
try:
docker run -e JAVA_TOOL_OPTIONS="-Xmx4g" -d -v "$(pwd)/data":/data ghcr.io/onthegomap/planetiler:latest --download --area=monaco --maxzoom=12 --output=/data/monaco.pmtiles --force
That will put your output into /data
in the container which is mapped to your local ./data
directory - otherwise the output exists in the container but not your host machine.
it works. thank you!