Combine the geometries of one SpatVector with those of another. Geometries can be combined based on overlap, shared boundaries and distance (in that order of operation).
The typical use-case of this method is when you are editing geometries and you have a number of small polygons in one SpatVector that should be part of the geometries of the another SpatVector; perhaps because they were small holes inbetween the borders of two SpatVectors.
To append SpatVectors use rbind and see methods like intersect and union for "normal" polygons combinations.
methods
## S4 method for signature 'SpatVector,SpatVector'combineGeoms(x, y, overlap=TRUE, boundary=TRUE, distance=TRUE, append=TRUE, minover=0.1, maxdist=Inf, dissolve=TRUE, erase=TRUE)
Arguments
x: SpatVector of polygons
y: SpatVector of polygons geometries that are to be combined with x
overlap: logical. If TRUE, a geometry is combined with the geometry it has most overlap with, if the overlap is above minover
boundary: logical. If TRUE, a geometry is combined with the geometry it has most shared border with
distance: logical. If TRUE, a geometry is combined with the geometry it is nearest to
append: logical. Should remaining geometries be appended to the output? Not relevant if distance=TRUE
minover: numeric. The fraction of the geometry in y that overlaps with a geometry in x. Below this threshold, geometries are not considered overlapping
maxdist: numeric. Geometries further away from each other than this distance (in meters) will not be combined
dissolve: logical. Should internal boundaries be dissolved?
erase: logical. If TRUE no new overlapping areas are created