geos_inner_join | R Documentation |
Experimental low-level spatial join infrastructure based on the
geos_basic_strtree()
.
geos_inner_join(
x,
y,
predicate = "intersects",
distance = NA,
suffix = c(".x", ".y")
)
geos_inner_join_keys(x, y, predicate = "intersects", distance = NA)
x , y |
Geometry vectors with a |
predicate |
One of:
|
distance |
Passed to |
suffix |
A character vector of length 2 with suffixes for the left and right sides for output columns with duplicated names. |
A data.frame with columns x and y corresponding to the 1-based
indices on pairs of x
and y
for which predicate
is TRUE.
x <- data.frame(
col_x = "a",
geometry = as_geos_geometry("POINT (10 10)")
)
y <- data.frame(
col_y = "a",
geometry = as_geos_geometry("POLYGON ((0 0, 0 10, 10 10, 10 0, 0 0))")
)
geos_inner_join(x, y, "intersects")
geos_inner_join_keys(
"POINT (5 5)",
"POLYGON ((0 0, 0 10, 10 10, 10 0, 0 0))",
"intersects"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.