Learn R Programming

s2 (version 0.4-0)

S2Polygon_union: Union and intersection of two s2polygons

Description

Given two lists of three column matrices representing S2Polygons calculate the union or intersection. Assumes the polygons have already been validated and put into the correct format by [`S2Polygon`]. Note the input is only the loops/rings of two polygons not the entire objects with areas and hole indicators.

Usage

S2Polygon_union(x, y)

Arguments

x

List of loops represented by three-column matrices.

y

List of loops represented by three-column matrices.