mirror of
https://github.com/cfpwastaken/planetiler-openmaptiles.git
synced 2026-02-04 04:21:08 +00:00
Warn when running with insufficient memory or disk space (#73)
This commit is contained in:
@@ -182,6 +182,24 @@ public class BasemapProfile extends ForwardingProfile {
|
|||||||
return OpenMapTilesSchema.VERSION;
|
return OpenMapTilesSchema.VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public long estimateIntermediateDiskBytes(long osmFileSize) {
|
||||||
|
// in late 2021, a 60gb OSM file used 200GB for intermediate storage
|
||||||
|
return osmFileSize * 200 / 60;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public long estimateOutputBytes(long osmFileSize) {
|
||||||
|
// in late 2021, a 60gb OSM file generated a 100GB output file
|
||||||
|
return osmFileSize * 100 / 60;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public long estimateRamRequired(long osmFileSize) {
|
||||||
|
// 30gb for a 60gb OSM file is generally safe, although less might be OK too
|
||||||
|
return osmFileSize / 2;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Layers should implement this interface to subscribe to elements from <a href="https://www.naturalearthdata.com/">natural
|
* Layers should implement this interface to subscribe to elements from <a href="https://www.naturalearthdata.com/">natural
|
||||||
* earth</a>.
|
* earth</a>.
|
||||||
|
|||||||
Reference in New Issue
Block a user