View source: R/spatial-overlap-fcns.R
generate.coterminous.xwalk | R Documentation |
If two regions are known to be co-terminous, this will generate a xwalk between them. This method is more reliable than other obvious methods, which can be thrown off by irregular shapes or differing resolutions between the spatial datasets. Put the smaller region first. Will return 1 row/smaller geo.
generate.coterminous.xwalk(
smaller.geo,
larger.geo,
keep.geometry = T,
trim.smaller = F
)
smaller.geo |
sf object containing the smaller geometries. (Because this is for coterminous regions, 1 set should be consistently smaller or the same size as the other) |
larger.geo |
sf object containing larger geos. |
trim.smaller |
Whether or not to trim smaller geos to combined area of all larger ones. Necessary, for example, if larger geos are clipped to water lines or otherwise trimmed, and the smaller ones are not. (In these cases, the smaller geometry is known to be smaller, but its spatial representation may not actually be). This step can be very computationally expensive for larger areas |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.