get.spatial.overlap: get.spatial.overlap

Description Usage Arguments

View source: R/xwalk-fcns.R

Description

Calculates the unique/row identifier column for each; returns a row for each combination of rows in the input sfs that intersect with one another with a column for the percent overlap. artifact of differing resolutions between the shapefiles or other artifacts of their representation. Filtering to geometries below a very small using filter.threshold or otherwise can remove these slivers.

Usage

1
2
3
4
5
6
7
8
get.spatial.overlap(
  sf1,
  sf2,
  sf1.identifier,
  sf2.identifier,
  filter.threshold = 0.01,
  crs = "+proj=lcc +lon_0=-90 +lat_1=33 +lat_2=45"
)

Arguments

sf1

First sf object

sf2

Second sf object

sf1.identifier

colname as string for region identifiers for first sf object

sf2.identifier

colname as string for region identifiers for second sf object

filter.threshold

percent overlap between sf1 and sf2, as decimal, below which to trim results before returning.


kmcd39/xwalks documentation built on Aug. 12, 2021, 5:44 p.m.