lawn_boolean_contains: Boolean contains

View source: R/boolean_contains.R

lawn_boolean_containsR Documentation

Boolean contains

Description

Boolean contains

Usage

lawn_boolean_contains(feature1, feature2, lint = FALSE)

Arguments

feature1, feature2

any data-Geometry/data-Feature objects

lint

(logical) Lint or not. Uses geojsonhint. Takes up increasing time as the object to get linted increases in size, so probably use by default for small objects, but not for large if you know they are good geojson objects. Default: FALSE

Value

a logical (TRUE/FALSE)

See Also

Other boolean functions: lawn_boolean_clockwise(), lawn_boolean_crosses(), lawn_boolean_disjoint(), lawn_boolean_overlap(), lawn_boolean_pointonline(), lawn_boolean_within()

Examples

l1 <- '[[1, 1], [1, 2], [1, 3], [1, 4]]'
pt1 <- '[1, 2]'
lawn_boolean_contains(feature1=lawn_linestring(l1), feature2=lawn_point(pt1))

ropensci/lawn documentation built on May 18, 2022, 9:58 a.m.