Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

misc-over

Find spatial join or intersections


Description

Find spatial join or intersections

Usage

overGeomGeom(x, y, returnList = FALSE, fn = NULL, ..., minDimension = -1)
overGeomGeomDF(x, y, returnList = FALSE, fn = NULL, ..., minDimension = -1)

Arguments

x

see over

y

see over

returnList

see over

fn

see over

...

see over

minDimension

integer; if -1, gIntersects is used to find geometry intersections; if 0, 1 or 2, gRelate is used. if gRelate is used, intersecting geometries are ordered by the dimension of the intersection (2: area overlap; 1: line in common; 0: point in common), and minDimension determines the mininum dimension of intersection required.

Value

see over

Note

gRelate (minDimension > -1) is likely to be substantially slower than gIntersects.

Author(s)

Edzer Pebesma

Examples

p1 = readWKT("POLYGON((0 1,0.95 0.31,0.59 -0.81,-0.59 -0.81,-0.95 0.31,0 1))")
p2 = readWKT("POLYGON((2 2,-2 2,-2 -2,2 -2,2 2),(1 1,-1 1,-1 -1,1 -1,1 1))")

overGeomGeom(p1,p2)

rgeos

Interface to Geometry Engine - Open Source ('GEOS')

v0.5-5
GPL (>= 2)
Authors
Roger Bivand [cre, aut] (<https://orcid.org/0000-0003-2392-6140>), Colin Rundel [aut], Edzer Pebesma [ctb], Rainer Stuetz [ctb], Karl Ove Hufthammer [ctb], Patrick Giraudoux [ctb], Martin Davis [cph, ctb], Sandro Santilli [cph, ctb]
Initial release
2020-09-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.