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)
object of class
modifiers; in particular
logical; if TRUE, print human-readable well-known-text representation of a coordinate reference system
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.
st_as_text(st_point(1:2))#>  "POINT (1 2)"#>  "SRID=4326;POINT (-90 40)"