Description Usage Arguments Value See Also Examples
View source: R/boolean_within.R
returns TRUE
if the first geometry is completely within the second
geometry
1 | lawn_boolean_within(feature1, feature2, lint = FALSE)
|
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: |
a logical (TRUE
/FALSE
)
Other boolean functions:
lawn_boolean_clockwise()
,
lawn_boolean_contains()
,
lawn_boolean_crosses()
,
lawn_boolean_disjoint()
,
lawn_boolean_overlap()
,
lawn_boolean_pointonline()
1 2 3 | pt1 <- '[1, 2]'
l1 <- '[[1, 1], [1, 2], [1, 3], [1, 4]]'
lawn_boolean_within(lawn_point(pt1), lawn_linestring(l1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.