Modern Apps git

← Modern-Apps.git

maps: real-archive test accepts header v11 and v12 bodies (#planet5)

Commit
167ff589974f3755568a487b58cf5a8fe367d4a6
Author
Vayun Mathur <[email protected]>
When
2026-11-14 16:32 UTC (22 days ago)
Parents
8513823
The ~50 GB planet5 writes header v11 (superblocks) and v12 bodies
(shared point runs). The renderer's real-archive suite accepts header
v9 (planet4), v10 or v11 (planet5) with dictionary compression for
the latter two, and one body version among v10, v11 and v12.

Verified: cargo test -p map_renderer --test real_archive --no-run;
the suite runs against the planet build (report).

Diff

library/map/src/main/rust/tests/real_archive.rs
diff --git a/library/map/src/main/rust/tests/real_archive.rs b/library/map/src/main/rust/tests/real_archive.rsindex 0f872a0d4d..88a1d39196 100644--- a/library/map/src/main/rust/tests/real_archive.rs+++ b/library/map/src/main/rust/tests/real_archive.rs@@ -96,10 +96,10 @@ fn header_version_and_dictionary_are_accepted() {     // planet4 is a v9 archive; planet5 a v10 one (dictionary-zstd bodies). Both must open.     match head[7] {         tilecodec::mamaps::header::FORMAT_VERSION_V9 => {}-        tilecodec::mamaps::header::FORMAT_VERSION_HEADER_V10 => {+        tilecodec::mamaps::header::FORMAT_VERSION_HEADER_V10 | tilecodec::mamaps::header::FORMAT_VERSION_HEADER_V11 => {             assert_eq!(header.compression, tilecodec::mamaps::header::COMPRESSION_ZSTD_DICT);         }-        v => panic!("planet4 is v9 and planet5 v10, got v{v}"),+        v => panic!("planet4 is v9 and planet5 v10/v11 (superblocks), got v{v}"),     }     assert_eq!(header.file_len, std::fs::metadata(&path).unwrap().len());     assert!(header.compressed() && header.rings_validated() && header.leaves_compressed());@@ -266,8 +266,8 @@ fn every_layer_decodes_and_tessellates_in_four_cities() {     assert!(extra.contains_key("region_links"), "no region-link tables decoded");     // planet4 carries v10 bodies, planet5 v11 (MED-residual heightmaps); never a mix.     assert!(-        versions.len() == 1 && versions.keys().all(|&v| v == 10 || v == 11),-        "expected v10 (planet4) or v11 (planet5) bodies only, got {versions:?}"+        versions.len() == 1 && versions.keys().all(|&v| (10..=12).contains(&v)),+        "expected one body version, v10 (planet4) or v11/v12 (planet5), got {versions:?}"     ); }