S2Polygon: Construct a S2Polygon

Description Usage Arguments

View source: R/s2polygon.R

Description

This function builds an 'S2Polygon' using the C++ polygon builder. See the header file inst/include/s2/s2polygonbuilder.h for details on how to use the arguments.

Usage

1
2
3
S2Polygon(x, validate = TRUE, xor_edges = TRUE,
  vertex_merge_radius = 0, edge_splice_fraction = 0.866,
  undirected_edges = FALSE)

Arguments

x

Input to construct the polygon from. At the moment the only valid input is a list of loops.

validate

Logical to validate the S2Polygon. Default is 'TRUE'.

xor_edges

Logical to indicate that edges should be 'xor'ed to avoind multiple loops with common edges. Default is 'TRUE'.

vertex_merge_radius

Numeric indicating that vertices within this distance should be merged. Defaults to zero (i.e. no merging).

edge_splice_fraction

Determines when edges are spliced. See C++ header as indicated in the description of this function. Default is 0.866.

undirected_edges

Logical to indicate that input edges should be considered undirected. Default is 'FALSE'. multiple loops with common edges. Default is 'TRUE'.


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