rgeos.intersect: Creating the Intersection of Two Spatial Polygons Data Frames

View source: R/spatial_manipulation.R

rgeos.intersectR Documentation

Creating the Intersection of Two Spatial Polygons Data Frames

Description

This uses rgeos::ginstersect and assumes that the row names in both spdf1 and spdf2 DO NOT HAVE SPACES.

Usage

rgeos.intersect(spdf1, spdf2, crs = NULL)

Arguments

spdf1

Spatial polygons data frame. One of the two set of polygons to intersect. If crs is NULL and spdf1 and spdf2 have different CRSes, then the CRS from spdf1 will be use to reproject spdf2.

spdf2

Spatial polygons data frame.

crs

Optional sp::CRS() call. Used to reproject both spdf1 and spdf2 using sp::spTransform(). Defaults to NULL.


nstauffer/aim.analysis documentation built on Nov. 2, 2023, 12:52 a.m.