Skip to content

Commit 0d1a48b

Browse files
authored
Merge pull request #2464 from kadyb/main
enhance `st_as_text()` docs (for #2361)
2 parents 13a42be + a621f1d commit 0d1a48b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

R/wkt.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ prnt.GEOMETRYCOLLECTION = function(x, ..., EWKT = TRUE) {
8585
#' \href{https://www.ogc.org/standard/sfa/}{simple features access} specification and extensions
8686
#' (known as EWKT, supported by PostGIS and other simple features implementations for addition of
8787
#' a SRID to a WKT string).
88+
#' @note To improve conversion performance, the lwgeom package can be used (it must be installed
89+
#' beforehand) and set the \code{Sys.setenv("LWGEOM_WKT" = "true")} environment variable. This
90+
#' will also result in faster printing of complex geometries. Note that the representation as WKT is
91+
#' different from the sf package and may cause reproducibility problems. An alternative solution is
92+
#' to use the [lwgeom::st_astext()] or [wk::as_wkt()] functions.
8893
#'
8994
#' @export
9095
st_as_text = function(x, ...) UseMethod("st_as_text")

man/st_as_text.Rd

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)