Class S2RegionCoverer.Options

Options for the S2RegionCoverer.

class Options ;

Methods

NameDescription
levelMod () If specified, then only cells where (level - min_level) is a multiple of "level_mod" will be used (default 1). This effectively allows the branching factor of the S2CellId hierarchy to be increased. Currently the only parameter values allowed are 1, 2, or 3, corresponding to branching factors of 4, 16, and 64 respectively.
maxCells () Sets the desired maximum number of cells in the approximation. Note the following:
maxLevel ()
minLevel () Sets the minimum and maximum cell levels to be used. The default is to use all cell levels.
setFixedLevel (level) Convenience function that sets both the maximum and minimum cell levels.
trueMaxLevel () Convenience function that returns the maximum level such that