Add no url geojson method (#1155)

pull/1157/head v0.8.4
Michael Barry 2025-01-25 06:13:58 -05:00 zatwierdzone przez GitHub
rodzic 8cb867f258
commit a5cc28470d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -460,6 +460,11 @@ public class Planetiler {
() -> GeoJsonReader.process(name, List.of(path), featureGroup, config, profile, stats)));
}
/** Same as {@link #addGeoJsonSource(String, Path, String)} except don't download a remote file. */
public Planetiler addGeoJsonSource(String name, Path defaultPath) {
return addGeoJsonSource(name, defaultPath, null);
}
/**
* Adds a new Natural Earth sqlite file source that will be processed when {@link #run()} is called.
* <p>