S2Covering: Approximate a Region on the Sphere by a Covering of S2Cells

Description Usage Arguments Value

View source: R/s2regioncoverer.R

Description

Approximate a region on the sphere by a (possibly interior) covering of S2Cells.

Usage

1
S2Covering(x, max_cells, min_level, max_level, interior = FALSE)

Arguments

x

Region to cover. Currently it must be a polygon or cap.

max_cells

Positive integer. Maximal number of cells to use in the covering.

min_level

Integer between 0 and 30 specifying the lowest cell level to use. Must be less than or equal to 'max_level'.

max_level

Integer between 0 and 30 specifying the highest cell level to use. Must be greater than or equal to 'min_level'.

interior

Logical to get an interior covering.

Value

A list containing an entry 'ids' with the ids of the S2Cells used to cover the region and possibly other entries for internal usage.


spatstat/s2 documentation built on Aug. 16, 2019, 4:10 p.m.