|
9 | 9 | #' @param dist numeric; buffer distance for all, or for each of the elements in \code{x}; in case |
10 | 10 | #' \code{dist} is a \code{units} object, it should be convertible to \code{arc_degree} if |
11 | 11 | #' \code{x} has geographic coordinates, and to \code{st_crs(x)$units} otherwise |
12 | | -#' @param nQuadSegs integer; number of segments per quadrant (fourth of a circle), for all or per-feature |
13 | | -#' @param endCapStyle character; style of line ends, one of 'ROUND', 'FLAT', 'SQUARE' |
14 | | -#' @param joinStyle character; style of line joins, one of 'ROUND', 'MITRE', 'BEVEL' |
15 | | -#' @param mitreLimit numeric; limit of extension for a join if \code{joinStyle} 'MITRE' is used (default 1.0, minimum 0.0) |
| 12 | +#' @param nQuadSegs integer; number of segments per quadrant (fourth of a circle), for all or per-feature; see details |
| 13 | +#' @param endCapStyle character; style of line ends, one of 'ROUND', 'FLAT', 'SQUARE'; see details |
| 14 | +#' @param joinStyle character; style of line joins, one of 'ROUND', 'MITRE', 'BEVEL'; see details |
| 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 | | -#' in which case negative \code{dist} values give buffers on the right-hand side, positive on the left. |
| 17 | +#' in which case negative \code{dist} values give buffers on the right-hand side, positive on the left; see details |
18 | 18 | #' @param ... passed on to \code{s2_buffer_cells} |
19 | 19 | #' @return an object of the same class of \code{x}, with manipulated geometry. |
20 | 20 | #' @export |
|
23 | 23 | #' the underlying 'buffer with style' GEOS function is used. |
24 | 24 | #' If a negative buffer returns empty polygons instead of shrinking, set st_use_s2() to FALSE |
25 | 25 | #' See \href{https://postgis.net/docs/ST_Buffer.html}{postgis.net/docs/ST_Buffer.html} for details. |
| 26 | +#' |
| 27 | +#' \code{nQuadSegs}, \code{endCapsStyle}, \code{joinStyle}, \code{mitreLimit} and \code{singleSide} only |
| 28 | +#' work when the GEOS back-end is used: for projected coordinates or when \code{sf_use_s2()} is set |
| 29 | +#' to \code{FALSE}. |
26 | 30 | #' @examples |
27 | 31 | #' |
28 | 32 | #' ## st_buffer, style options (taken from rgeos gBuffer) |
|
0 commit comments