generate.coterminous.xwalk: generate.coterminous.xwalk

View source: R/spatial-overlap-fcns.R

generate.coterminous.xwalkR Documentation

generate.coterminous.xwalk

Description

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.

Usage

generate.coterminous.xwalk(
  smaller.geo,
  larger.geo,
  keep.geometry = T,
  trim.smaller = F
)

Arguments

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


kmcd39/geox documentation built on Nov. 15, 2024, 2:03 a.m.