sf (version 0.2-8)

st_as_text: Return Well-known Text representation of simple feature geometry

Description

Return Well-known Text representation of simple feature geometry

Usage

st_as_text(x, ...)
"st_as_text"(x, ...)
"st_as_text"(x, ..., EWKT = FALSE)

Arguments

x
object of class sfg or sfc
...
passed on to WKT_name
EWKT
logical; if TRUE, print SRID=xxx; before the WKT string if epsg is available

Details

to suppress printing of SRID, EWKT=FALSE can be passed as parameter

Examples

Run this code
st_as_text(st_point(1:2))

Run the code above in your browser using DataLab