See the Wikipedia entry on DE-9IM
for how to interpret pattern
, match
, and the result of geos_relate()
and/or geos_relate_pattern_create()
.
geos_relate(geom1, geom2, boundary_node_rule = "mod2")
geos_relate_pattern(geom1, geom2, pattern, boundary_node_rule = "mod2")
geos_relate_pattern_match(match, pattern)
geos_relate_pattern_create(
II = "*",
IB = "*",
IE = "*",
BI = "*",
BB = "*",
BE = "*",
EI = "*",
EB = "*",
EE = "*"
)
GEOS geometry vectors, recycled to a common length.
One of "mod2", "endpoint", "multivalent_endpoint", or "monovalent_endpoint".
A character vector representing the match
One of "0", "1", "2", "T", "F", or "*" describing the dimension of the intersection between the interior (I), boundary (B), and exterior (E).
geos_relate_pattern_match("FF*FF1***", c(NA, "FF*FF****", "FF*FF***F"))
#> [1] NA TRUE FALSE
geos_relate("POINT (0 0)", "POINT (0 0)")
#> [1] "0FFFFFFF2"
geos_relate_pattern("POINT (0 0)", "POINT (0 0)", "T********")
#> [1] TRUE
geos_relate_pattern_create(II = "T")
#> [1] "T********"