Skip to content

Commit

Permalink
Expose gj2008 flag in dots arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ateucher committed Oct 18, 2023
1 parent 64d2745 commit 5a66c34
Show file tree
Hide file tree
Showing 19 changed files with 193 additions and 140 deletions.
4 changes: 2 additions & 2 deletions R/clip_erase.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#' @param bbox supply a bounding box instead of a clipping layer to extract from
#' the target layer. Supply as a numeric vector: \code{c(minX, minY, maxX, maxY)}.
#' @param remove_slivers Remove tiny sliver polygons created by clipping. (Default \code{FALSE})
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet gj2008
#'
#' @return clipped target in the same class as the input target
#'
Expand Down Expand Up @@ -138,7 +138,7 @@ ms_clip.sfc <- function(target, clip = NULL, bbox = NULL,
#' @param bbox supply a bounding box instead of an erasing layer to remove from
#' the target layer. Supply as a numeric vector: \code{c(minX, minY, maxX, maxY)}.
#' @param remove_slivers Remove tiny sliver polygons created by erasing. (Default \code{FALSE})
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet gj2008
#'
#' @return erased target in the same format as the input target
#' @examples
Expand Down
2 changes: 1 addition & 1 deletion R/dissolve.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#' @param copy_fields fields to copy. The first instance of each field will be
#' copied to the aggregated feature.
#' @param weight Name of an attribute field for generating weighted centroids (points only).
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet gj2008
#'
#' @return the same class as the input
#'
Expand Down
2 changes: 1 addition & 1 deletion R/explode.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' \item multipart \code{SpatialPolygons}, \code{SpatialLines};
#' \item \code{sf} or \code{sfc} multipart lines, or polygons object
#' }
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet gj2008
#'
#' @return same class as input
#'
Expand Down
2 changes: 1 addition & 1 deletion R/filter_islands.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#' @param drop_null_geometries should features with empty geometries be dropped?
#' Default \code{TRUE}. Ignored for \code{SpatialPolyons*}, as it is always
#' \code{TRUE}.
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet gj2008
#'
#' @return object with only specified features retained, in the same class as
#' the input
Expand Down
2 changes: 1 addition & 1 deletion R/inner_lines.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' \item \code{SpatialPolygons*};
#' \item \code{sf} or \code{sfc} polygons object
#' }
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet gj2008
#'
#' @return lines in the same class as the input layer, but without attributes
#'
Expand Down
2 changes: 1 addition & 1 deletion R/lines.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' intermediate level of hierarchy at TYPE 1, with the lowest-level internal
#' boundaries set to TYPE 2. Supplying a character vector of field names adds
#' additional levels of hierarchy.
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet gj2008
#'
#' @return topological boundaries as lines, in the same class as the input
#'
Expand Down
2 changes: 1 addition & 1 deletion R/points.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#' \code{location} is specified.
#' @param y name of field containing y coordinate values. Must be \code{NULL} if
#' \code{location} is specified.
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet gj2008
#'
#' @return points in the same class as the input.
#'
Expand Down
2 changes: 1 addition & 1 deletion R/simplify.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#' Ignored for \code{Spatial*} objects, as it is always \code{TRUE}.
#' @param snap_interval Specify snapping distance in source units, must be a
#' numeric. Default \code{NULL}
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet
#' @inheritDotParams apply_mapshaper_commands force_FC sys sys_mem quiet gj2008
#'
#' @return a simplified representation of the geometry in the same class as the
#' input
Expand Down
37 changes: 22 additions & 15 deletions man/apply_mapshaper_commands.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 17 additions & 12 deletions man/ms_clip.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 17 additions & 12 deletions man/ms_dissolve.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 17 additions & 12 deletions man/ms_erase.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 17 additions & 12 deletions man/ms_explode.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions man/ms_filter_fields.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 17 additions & 12 deletions man/ms_filter_islands.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5a66c34

Please sign in to comment.