Calculate the required level based on a bounding box and a cellsize

n_level(bbox, cellsize)

Arguments

bbox

A two-column matrix. The first column has the minimum, the second the maximum values. Rows represent the spatial dimensions.

cellsize

The size of each cell. Either a single value or one value for each dimension.

Value

the required level to cover the bbox using a grid with cellsize

See also