Learn R Programming

wk (version 0.9.4)

wk_problems: Validate well-known binary and well-known text

Description

The problems handler returns a character vector of parse errors and can be used to validate input of any type for which wk_handle() is defined.

Usage

wk_problems(handleable, ...)

wk_problems_handler()

Value

A character vector of parsing errors. NA signifies that there was no parsing error.

Arguments

handleable

A geometry vector (e.g., wkb(), wkt(), xy(), rct(), or sf::st_sfc()) for which wk_handle() is defined.

...

Passed to the wk_handle() method.

Examples

Run this code
wk_problems(new_wk_wkt(c("POINT EMTPY", "POINT (20 30)")))
wk_handle(
  new_wk_wkt(c("POINT EMTPY", "POINT (20 30)")),
  wk_problems_handler()
)

Run the code above in your browser using DataLab