check disk space and memory after wikidata/download early exit

pull/111/head
Mike Barry 2022-03-04 05:18:27 -05:00
rodzic e93ff79a01
commit 3767cc4719
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -483,8 +483,6 @@ public class Planetiler {
}
ensureInputFilesExist();
Files.createDirectories(tmpDir);
checkDiskSpace();
checkMemory();
if (fetchWikidata) {
Wikidata.fetch(osmInputFile(), wikidataNamesFile, config(), profile(), stats());
}
@ -494,6 +492,10 @@ public class Planetiler {
if (onlyDownloadSources || onlyFetchWikidata) {
return; // exit only if just fetching wikidata or downloading sources
}
checkDiskSpace();
checkMemory();
if (osmInputFile != null) {
config.bounds().setFallbackProvider(osmInputFile);
}