flexible.spatial.filter | R Documentation |
Gets all polygons polys
that overlap with sf object x
.
flexible.spatial.filter(x, polys)
x |
|
polys |
polygons to get over area |
subset.approach |
spatial filter approach; one of "intersects" or "crop". Intersection or cropping to bbox. |
May use different subset approaches (intersects or crop), depending on whether you want to match a polygon's area or its bounding box.
If x
isn't already points, it is transformed to them using
st_points_on_surface
.
Currently this doesn't work with non-coterminous polys. In this case, use
xwalks::get.spatial.overlap
, and filter by degree of overlap.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.