flexible.spatial.filter: flexible.spatial.filter

flexible.spatial.filterR Documentation

flexible.spatial.filter

Description

Gets all polygons polys that overlap with sf object x.

Usage

flexible.spatial.filter(x, polys)

Arguments

x

sf or bbox object spanning area you want to filter polys to. Will use get intersection if sf object or crop if bbox.

polys

polygons to get over area x.

subset.approach

spatial filter approach; one of "intersects" or "crop". Intersection or cropping to bbox.

Details

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.


kmcd39/geox documentation built on Nov. 15, 2024, 2:03 a.m.