R/crs.R
, R/wkt.R
st_as_text.Rd
Return Well-known Text representation of simple feature geometry or coordinate reference system
# S3 method for crs st_as_text(x, ..., pretty = FALSE) st_as_text(x, ...) # S3 method for sfg st_as_text(x, ...) # S3 method for sfc st_as_text(x, ..., EWKT = FALSE)
x | object of class |
---|---|
... | modifiers; in particular |
pretty | logical; if TRUE, print human-readable well-known-text representation of a coordinate reference system |
EWKT | logical; if TRUE, print SRID=xxx; before the WKT string if |
The returned WKT representation of simple feature geometry conforms to the simple features access specification and extensions, known as EWKT, supported by PostGIS and other simple features implementations for addition of SRID to a WKT string.
#> [1] "POINT (1 2)"#> [1] "SRID=4326;POINT (-90 40)"