R: Mark character vectors as well-known text

wkt {wk} | R Documentation

## Mark character vectors as well-known text

### Description

Mark character vectors as well-known text

### Usage

    wkt(x = character())

    parse_wkt(x)

    as_wkt(x, ...)

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

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

    ## S3 method for class 'wk_wkt'
    as_wkt(
      x,
      ...,
      include_z = NULL,
      include_m = NULL,
      include_srid = NULL,
      precision = NULL,
      trim = NULL
    )

    ## S3 method for class 'wk_wkb'
    as_wkt(
      x,
      ...,
      include_z = NULL,
      include_m = NULL,
      include_srid = NULL,
      precision = NULL,
      trim = NULL
    )

    ## S3 method for class 'wk_wksxp'
    as_wkt(
      x,
      ...,
      include_z = NULL,
      include_m = NULL,
      include_srid = NULL,
      precision = NULL,
      trim = NULL
    )

### Arguments

`x` | A `character()` vector containing well-known text.
`...` | Unused
`include_z` | Include the values of the Z and M coordinates and/or SRID in the output? Use `FALSE` to omit, `TRUE` to include, or `NA` to include only if present. Note that using `TRUE` may result in an error if there is no value present in the original.
`include_m` | Include the values of the Z and M coordinates and/or SRID in the output? Use `FALSE` to omit, `TRUE` to include, or `NA` to include only if present. Note that using `TRUE` may result in an error if there is no value present in the original.
`include_srid` | Include the values of the Z and M coordinates and/or SRID in the output? Use `FALSE` to omit, `TRUE` to include, or `NA` to include only if present. Note that using `TRUE` may result in an error if there is no value present in the original.
`precision` | The rounding precision to use when writing (number of decimal places).
`trim` | Trim unnecessary zeroes in the output?

### Value

A `new_wk_wkt()`

### Examples

    wkt("POINT (20 10)")

[Package wk version 0.3.4 Index]