S2CellUnion.denormalize

Replaces "output" with an expanded version of the cell union where any cells whose level is less than "min_level" or where (level - min_level) is not a multiple of "level_mod" are replaced by their children, until either both of these conditions are satisfied or the maximum level is reached.

This method allows a covering generated by S2RegionCoverer using min_level() or level_mod() constraints to be stored as a normalized cell union (which allows various geometric computations to be done) and then converted back to the original list of cell ids that satisfies the desired constraints.

  1. void denormalize(int min_level, int level_mod, S2CellId[] output)
    class S2CellUnion
    const
    void
    denormalize
  2. void denormalize(S2CellId[] input, int min_level, int level_mod, S2CellId[] output)

Meta