st_coalesce.Rd
Spatial coalesce
st_coalesce(x, y, radius = 0)
object of class sf
, sfc
or sfg
object of class sf
, sfc
or sfg
(optional) numeric or object of class units
; radius for the morphological opening and closing operations that are applied if radius != 0
. In case x
has geodetic coordinates (lon/lat) and sf_use_s2()
is TRUE
, a numeric radius
is taken as distance in meters and a units
object in radius
is converted to meters. In case x
has geodetic coordinates (lon/lat) and sf_use_s2()
is FALSE
, a numeric radius
is taken as degrees, and a units
object in radius
is converted to arc_degree
(and warnings are issued). In case x
does not have geodetic coordinates (projected) then numeric radius
is assumed to have the units of the coordinates, and a units
radius
is converted to those if st_crs(x)
is not NA
.
object of class sf
, sfc
or sfg
, a topological mosaic that includes x
geometries within the footprint of x
and y
geometries outside of the footprint of x
. Can be applied to mosaic a list of more than two layers by using purrr::reduce(list(x, y, z, ...), st_coalesce)
.