Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement promote_to_multi when converting WKB to sfc #2369

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Prev Previous commit
add doc
paleolimbot committed Mar 31, 2024
commit 99ca07221b81ba2b6239ac69970ede6f38a4e434
2 changes: 2 additions & 0 deletions R/wkb.R
Original file line number Diff line number Diff line change
@@ -25,6 +25,8 @@ skip0x = function(x) {
#' @param EWKB logical; if `TRUE`, parse as EWKB (extended WKB; PostGIS: ST_AsEWKB), otherwise as ISO WKB (PostGIS: ST_AsBinary)
#' @param spatialite logical; if \code{TRUE}, WKB is assumed to be in the spatialite dialect, see \url{https://www.gaia-gis.it/gaia-sins/BLOB-Geometry.html}; this is only supported in native endian-ness (i.e., files written on system with the same endian-ness as that on which it is being read).
#' @param pureR logical; if `TRUE`, use only R code, if `FALSE`, use compiled (C++) code; use `TRUE` when the endian-ness of the binary differs from the host machine (\code{.Platform$endian}).
#' @param promote_to_multi logical; if `TRUE`, attempt to promote combinations of simple/multi
#' such that all output geometries are multi geometries of the same type.
#' @details When converting from WKB, the object \code{x} is either a character vector such as typically obtained from PostGIS (either with leading "0x" or without), or a list with raw vectors representing the features in binary (raw) form.
#' @examples
#' wkb = structure(list("01010000204071000000000000801A064100000000AC5C1441"), class = "WKB")
6 changes: 5 additions & 1 deletion man/st_as_sfc.Rd

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