View source: R/spatial_manipulation.R
sf_intersect | R Documentation |
This uses sf::st_intersection
to find ONLY the intersecting geometry of two SPDFs and return a single attribute variable from each.
sf_intersect(
polygons1,
polygons2,
polygons1_attribute,
polygons2_attribute,
polygons1_attribute_output = NULL,
polygons2_attribute_output = NULL,
projection = NULL
)
polygons1 |
Spatial polygons data frame. One of the two sets of geometry to intersect. |
polygons2 |
Spatial polygons data frame. One of the two sets of geometry to intersect. |
polygons1_attribute |
Character string. The name of the variable in |
polygons2_attribute |
Character string. The name of the variable in |
polygons1_attribute_output |
Optional character string. The name of the variable in the output for the values inherited from |
polygons2_attribute_output |
Optional character string. The name of the variable in the output for the values inherited from |
projection |
Optional CRS object. Used as the projection for both |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.