This commit is contained in:
Andras Schmelczer 2026-03-15 17:38:26 +00:00
parent 80c093b7ba
commit f72c43a9fa
101 changed files with 2168 additions and 1177 deletions

View file

@ -39,7 +39,10 @@ pub fn cell_for_row(
return max_cell;
}
let cell = h3o::CellIndex::try_from(max_cell).expect("precomputed H3 cell must be valid");
u64::from(cell.parent(h3_res).expect("parent resolution must be valid for precomputed cell"))
u64::from(
cell.parent(h3_res)
.expect("parent resolution must be valid for precomputed cell"),
)
}
/// Whether the given resolution requires computing a parent from precomputed cells.