S2 cell union operators
s2_cell_union_normalize(x)s2_cell_union_contains(x, y)
s2_cell_union_intersects(x, y)
s2_cell_union_intersection(x, y)
s2_cell_union_union(x, y)
s2_cell_union_difference(x, y)
s2_covering_cell_ids(
x,
min_level = 0,
max_level = 30,
max_cells = 8,
buffer = 0,
interior = FALSE,
radius = s2_earth_radius_meters()
)
s2_covering_cell_ids_agg(
x,
min_level = 0,
max_level = 30,
max_cells = 8,
buffer = 0,
interior = FALSE,
radius = s2_earth_radius_meters(),
na.rm = FALSE
)
An s2_geography or s2_cell_union()
.
The minimum and maximum levels to constrain the covering.
The maximum number of cells in the covering. Defaults to 8.
A distance to buffer outside the geography
Use TRUE
to force the covering inside the geography.
The radius to use (e.g., s2_earth_radius_meters()
)
Remove NAs prior to computing aggregate?