get the intersection between to maps with ids. Caches the result in the working directory.

getIntersection(
  inputShape,
  outputShape,
  suffix = c(".x", ".y"),
  recalcArea = TRUE,
  ...
)

Arguments

inputShape

- the input sf

outputShape

- the output sf

suffix

- the suffix of any duplicated columns as per dplyr::inner_join()

recalcArea

- do you need the area of the intersected shape (e.g. for areal interpolation)

...

passed on to .cached() (cache control) - relevant is nocache = TRUE which prevents this from being precalculated

Value

a sf object representing the intersection of the input and output shapes.