
Last chance! 50% off unlimited learning
Sale ends in
Tests whether two BoostObjects intersect (element-wise).
bg_intersects(obj1, obj2)# S4 method for BoostMultiPolygons,BoostBoxGrid
bg_intersects(obj1, obj2)
# S4 method for BoostMultiLines,BoostBoxGrid
bg_intersects(obj1, obj2)
# S4 method for BoostMultiPolygons,BoostPointGrid
bg_intersects(obj1, obj2)
# S4 method for BoostMultiPolygons,BoostGeometries
bg_intersects(obj1, obj2)
# S4 method for BoostMultiLines,BoostGeometries
bg_intersects(obj1, obj2)
# S4 method for BoostMultiPoints,BoostGeometries
bg_intersects(obj1, obj2)
A BoostObject.
A BoostObject.
A list, with list element i an integer vector with the indices j for which intersects(x[i],y[j]) is TRUE.
# NOT RUN {
pts = boost(sf::st_sfc(sf::st_point(c(.5,.5)),
sf::st_point(c(1.5, 1.5)),
sf::st_point(c(2.5, 2.5))))
pol = boost(sf::st_sfc(sf::st_polygon(
list(rbind(c(0,0), c(2,0), c(2,2), c(0,2), c(0,0))))))
bg_intersects(pol, pts)
# }
Run the code above in your browser using DataLab