S2Polygon_Contains: Test of Containment in S2Polygon

Description Usage Arguments

View source: R/s2polygon.R

Description

Test whether the given object(s) on the sphere are contained in a polygon. At the moment only point containment can be tested.

Usage

1

Arguments

poly

Named list containing an entry called 'loops' containing a list of polygon loops represented by three-column matrices.

x

Object(s) to test for containment in 'poly'. At the moment only points are handled and they must be specified as a three-column matrix.

approx

Logical to use approximate testing of point in polygon (allows points very slightly outside the polygon). Useful for allowing points directly on the border.


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