private static long estimateNumNodes(long osmFileSize) {
    // On 2/14/2022, planet.pbf was 66691979646 bytes with ~7.5b nodes, so scale from there
    return Math.round(7_500_000_000d * (osmFileSize / 66_691_979_646d));
  }
Estimates the resource requirements for a multipolygon geometry multimap for a given OSM input file.
planetiler-core/src/main/java/com/onthegomap/planetiler/reader/osm/OsmReader.java