geos_relate: Dimensionally extended 9 intersection model

View source: R/geos-binary-atomic.R

geos_relateR Documentation

Dimensionally extended 9 intersection model

Description

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().

Usage

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 = "*"
)

Arguments

geom1, geom2

GEOS geometry vectors, recycled to a common length.

boundary_node_rule

One of "mod2", "endpoint", "multivalent_endpoint", or "monovalent_endpoint".

pattern, match

A character vector representing the match

II, IB, IE, BI, BB, BE, EI, EB, EE

One of "0", "1", "2", "T", "F", or "*" describing the dimension of the intersection between the interior (I), boundary (B), and exterior (E).

Examples

geos_relate_pattern_match("FF*FF1***", c(NA, "FF*FF****", "FF*FF***F"))
geos_relate("POINT (0 0)", "POINT (0 0)")
geos_relate_pattern("POINT (0 0)", "POINT (0 0)", "T********")
geos_relate_pattern_create(II = "T")


geos documentation built on June 7, 2023, 6:04 p.m.