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.
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"
)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.