|
15 | 15 | #' @param mitreLimit numeric; limit of extension for a join if \code{joinStyle} 'MITRE' is used (default 1.0, minimum 0.0); see details
|
16 | 16 | #' @param singleSide logical; if \code{TRUE}, single-sided buffers are returned for linear geometries,
|
17 | 17 | #' in which case negative \code{dist} values give buffers on the right-hand side, positive on the left; see details
|
18 |
| -#' @param ... passed on to \code{s2_buffer_cells} |
| 18 | +#' @param ... passed on to [s2::s2_buffer_cells()] |
19 | 19 | #' @return an object of the same class of \code{x}, with manipulated geometry.
|
20 | 20 | #' @export
|
21 | 21 | #' @details \code{st_buffer} computes a buffer around this geometry/each geometry. If any of \code{endCapStyle},
|
@@ -817,7 +817,7 @@ get_first_sfg = function(x) {
|
817 | 817 | #' @note To find whether pairs of simple feature geometries intersect, use
|
818 | 818 | #' the function \code{\link{st_intersects}} instead of \code{st_intersection}.
|
819 | 819 | #'
|
820 |
| -#' When using GEOS and not using s2 polygons contain their boundary. When using s2 this is determined by the \code{model} defaults of \link[s2]{s2_options}, which can be overriden via the ... argument, e.g. \code{model = "closed"} to force DE-9IM compliant behaviour of polygons (and reproduce GEOS results). |
| 820 | +#' When using GEOS and not using s2 polygons contain their boundary. When using s2 this is determined by the \code{model} defaults of \link[s2]{s2_options}, which can be overridden via the ... argument, e.g. \code{model = "closed"} to force DE-9IM compliant behaviour of polygons (and reproduce GEOS results). |
821 | 821 | #' @examples
|
822 | 822 | #' set.seed(131)
|
823 | 823 | #' library(sf)
|
@@ -899,7 +899,7 @@ st_difference.sfg = function(x, y, ...)
|
899 | 899 | #' numbers in the argument to \code{x}; geometries that are empty
|
900 | 900 | #' or contained fully inside geometries with higher priority are removed entirely.
|
901 | 901 | #' The \code{st_difference.sfc} method with a single argument returns an object with
|
902 |
| -#' an \code{"idx"} attribute with the orginal index for returned geometries. |
| 902 | +#' an \code{"idx"} attribute with the original index for returned geometries. |
903 | 903 | st_difference.sfc = function(x, y, ...) {
|
904 | 904 | if (missing(y)) {
|
905 | 905 | if (isTRUE(st_is_longlat(x)))
|
@@ -978,16 +978,21 @@ st_snap.sf = function(x, y, tolerance)
|
978 | 978 |
|
979 | 979 | #' @name geos_combine
|
980 | 980 | #' @export
|
981 |
| -#' @param by_feature logical; if TRUE, union each feature if \code{y} is missing or else each pair of features; if FALSE return a single feature that is the geometric union of the set of features in \code{x} if \code{y} is missing, or else the unions of each of the elements of the Cartesian product of both sets |
982 |
| -#' @param is_coverage logical; if TRUE, use an optimized algorithm for features that form a polygonal coverage (have no overlaps) |
| 981 | +#' @param by_feature logical; if `TRUE`, union each feature if \code{y} is missing or else each pair of features; if `FALSE` return a single feature that is the geometric union of the set of features in \code{x} if \code{y} is missing, or else the unions of each of the elements of the Cartesian product of both sets |
| 982 | +#' @param is_coverage logical; if `TRUE`, use an optimized algorithm for features that form a polygonal coverage (have no overlaps) |
983 | 983 | #' @param y object of class \code{sf}, \code{sfc} or \code{sfg} (optional)
|
984 | 984 | #' @param ... ignored
|
985 | 985 | #' @seealso \link{st_intersection}, \link{st_difference}, \link{st_sym_difference}
|
986 | 986 | #' @return If \code{y} is missing, \code{st_union(x)} returns a single geometry with resolved boundaries, else the geometries for all unioned pairs of `x[i]` and `y[j]`.
|
987 | 987 | #' @details
|
988 |
| -#' If \code{st_union} is called with a single argument, \code{x}, (with \code{y} missing) and \code{by_feature} is \code{FALSE} all geometries are unioned together and an \code{sfg} or single-geometry \code{sfc} object is returned. If \code{by_feature} is \code{TRUE} each feature geometry is unioned individually. This can for instance be used to resolve internal boundaries after polygons were combined using \code{st_combine}. If \code{y} is provided, all elements of \code{x} and \code{y} are unioned, pairwise if \code{by_feature} is TRUE, or else as the Cartesian product of both sets. |
| 988 | +#' If \code{st_union} is called with a single argument, \code{x}, (with \code{y} missing) and \code{by_feature} is \code{FALSE} all geometries are unioned together and an \code{sfg} or single-geometry \code{sfc} object is returned. |
| 989 | +#' If \code{by_feature} is \code{TRUE} each feature geometry is unioned individually. |
| 990 | +#' This can for instance be used to resolve internal boundaries after polygons were combined using \code{st_combine}. |
| 991 | +#' If \code{y} is provided, all elements of \code{x} and \code{y} are unioned, pairwise if \code{by_feature} is TRUE, or else as the Cartesian product of both sets. |
989 | 992 | #'
|
990 |
| -#' Unioning a set of overlapping polygons has the effect of merging the areas (i.e. the same effect as iteratively unioning all individual polygons together). Unioning a set of LineStrings has the effect of fully noding and dissolving the input linework. In this context "fully noded" means that there will be a node or endpoint in the output for every endpoint or line segment crossing in the input. "Dissolved" means that any duplicate (e.g. coincident) line segments or portions of line segments will be reduced to a single line segment in the output. Unioning a set of Points has the effect of merging all identical points (producing a set with no duplicates). |
| 993 | +#' Unioning a set of overlapping polygons has the effect of merging the areas (i.e. the same effect as iteratively unioning all individual polygons together). |
| 994 | +#' Unioning a set of LineStrings has the effect of fully noding and dissolving the input linework. In this context "fully noded" means that there will be a node or endpoint in the output for every endpoint or line segment crossing in the input. |
| 995 | +#' "Dissolved" means that any duplicate (e.g. coincident) line segments or portions of line segments will be reduced to a single line segment in the output. Unioning a set of Points has the effect of merging all identical points (producing a set with no duplicates). |
991 | 996 | #' @examples
|
992 | 997 | #' plot(st_union(nc))
|
993 | 998 | st_union = function(x, y, ..., by_feature = FALSE, is_coverage = FALSE) UseMethod("st_union")
|
|
0 commit comments