maps: planet_build.sh builds the ~50 GB planet5 (#planet5)
- Commit
2e79417eb931560d90e313956c3ac524e6c37267- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-14 15:28 UTC (21 days ago)
- Parents
9c3fe62
Wires the owner's ~50 GB decisions into the scripted build: - mamaps_build: the "aggressive" preset (--dem-px 1 --simplify-scale 4 --z14-tolerance 2 --coord-quant --keep-z13-wash) and --no-junction-layer (lane connectors are drawn only by carriageway layers, which the release style drops). - graph_thin --v9 (column ZBLK records, zstd-block shape points, road names and name offsets). Thinning stays 1 m with the 25 m junction zone: the preset's 2 m changed the step list of about half of all US West routes. - mamaps_planet5 now writes superblocks and v12 bodies by default; the pack keeps --poi-zsec 10,15; transit hot sections stay raw. bash -n clean; US West runs of each stage in the planet50 report.
Diff
scripts/maps/planet_build.sh
diff --git a/scripts/maps/planet_build.sh b/scripts/maps/planet_build.shindex e074e05c9f..be41c7a0ac 100755--- a/scripts/maps/planet_build.sh+++ b/scripts/maps/planet_build.sh@@ -339,9 +339,12 @@ log " memory: MemAvailable $(mem_avail_gb)G, headroom ${MEM_HEADROOM_GB}G, scop MB_ARGS=(--input "$IN/planet.osm.pbf" --out "$TILES" --coastline "$IN/coastline.shp" --graph "$GRAPH" --transit-routes "$ROUTES" --dem "$IN/world.mdem" --region world- # planet5 "balanced": DEM error <= 0.5 ground pixel per zoom, 2x simplification below z14,- # a 1-unit z14 floor for washable layers, zoom-adaptive coordinate grid, z13 wash kept.- --dem-px 0.5 --simplify-scale 2 --z14-tolerance 1 --coord-quant --keep-z13-wash)+ # planet5 "aggressive" (owner, ~50 GB revision): DEM error <= 1 ground pixel per zoom, 4x+ # simplification below z14, a 2-unit z14 floor for washable layers, zoom-adaptive coordinate+ # grid, z13 wash kept. Error table in the planet-size / planet50 reports.+ # No junction layer: lane connectors are drawn only by carriageway layers, which the release+ # style drops (library/map style::LANE_RENDERING = false).+ --dem-px 1 --simplify-scale 4 --z14-tolerance 2 --coord-quant --keep-z13-wash --no-junction-layer) # Pressure log: user.slice memory PSI (what fb-oomd watches), MemAvailable and # each build scope's anon/file, every 30 s, for the life of the build.@@ -594,7 +597,9 @@ TILES5=$TMP/tiles5.mamaps rm -rf "$GRAPH5" "$TRANSIT5" "$TILES5" # Three independent conversions, run together (graph_thin is one thread, ~48 GB; the others # use the pool). All read their inputs only.-run_tool g5 60 0 1 -- nice -n 10 "$BIN/examples/graph_thin" "$GRAPH" "$GRAPH5" 100 25 --v8 \+# Graph v9 (column ZBLK, zstd-block shape points / names / name offsets). Thinning stays 1 m: the+# aggressive preset's 2 m changed the step list of ~half of all routes on US West.+run_tool g5 60 0 1 -- nice -n 10 "$BIN/examples/graph_thin" "$GRAPH" "$GRAPH5" 100 25 --v9 \ >"$TMP/graph5.log" 2>&1 & G5_PID=$! run_tool t5 24 0 1 -- nice -n 10 "$BIN/transit_planet5" "$WT" "$TRANSIT5" --shape-tol-m 1 \ >"$TMP/transit5.log" 2>&1 & T5_PID=$!