Mark character vectors as well-known text

wkt(x = character(), crs = wk_crs_auto())

parse_wkt(x, crs = wk_crs_auto())

as_wkt(x, ...)

# S3 method for default
as_wkt(x, ...)

# S3 method for character
as_wkt(x, ..., crs = NULL)

# S3 method for wk_wkt
as_wkt(x, ...)

Arguments

x

A character() vector containing well-known text.

crs

A value to be propagated as the CRS for this vector.

...

Unused

Value

A new_wk_wkt()

Examples

wkt("POINT (20 10)")
#> <wk_wkt[1]> #> [1] POINT (20 10)