Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wkt

Mark character vectors as well-known text


Description

Mark character vectors as well-known text

Usage

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

parse_wkt(x, crs = wk_crs_auto())

as_wkt(x, ...)

## Default S3 method:
as_wkt(x, ...)

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

## S3 method for class '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

Examples

wkt("POINT (20 10)")

wk

Lightweight Well-Known Geometry Parsing

v0.4.1
MIT + file LICENSE
Authors
Dewey Dunnington [aut, cre] (<https://orcid.org/0000-0002-9415-4582>), Edzer Pebesma [aut] (<https://orcid.org/0000-0001-8049-7069>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.