onthegomap/planetiler#379 - download dir config (#100)

This commit is contained in:
Björn Bilger
2023-09-04 11:29:11 +02:00
committed by GitHub
parent 2857f8b7ab
commit f5fb45ea5b

View File

@@ -16,7 +16,7 @@ public class OpenMapTilesMain {
static void run(Arguments arguments) throws Exception { static void run(Arguments arguments) throws Exception {
Path dataDir = Path.of("data"); Path dataDir = Path.of("data");
Path sourcesDir = dataDir.resolve("sources"); Path sourcesDir = arguments.file("download_dir", "download directory", dataDir.resolve("sources"));
// use --area=... argument, AREA=... env var or area=... in config to set the region of the world to use // use --area=... argument, AREA=... env var or area=... in config to set the region of the world to use
// will be ignored if osm_path or osm_url are set // will be ignored if osm_path or osm_url are set
String area = arguments.getString( String area = arguments.getString(