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

wkb_problems {wk} | R Documentation

## Validate well-known binary and well-known text

### Description

Validate well-known binary and well-known text

### Usage

    wkb_problems(wkb)

    wkt_problems(wkt)

    wksxp_problems(wksxp)

### Arguments

`wkb` | A `list()` of `raw()` vectors, such as that returned by `sf::st_as_binary()`.
`wkt` | A character vector containing well-known text.
`wksxp` | A `list()` of classed objects

### Value

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

### Examples

    # well-known text
    wkt_problems(c("POINT EMTPY", "POINT (20 30)"))

    # well-known binary
    wkb <- wkt_translate_wkb("POINT (30 10)", endian = 1)[[1]]
    wkb_bad <- wkb
    wkb_bad[2] <- as.raw(255)
    wkb_problems(list(wkb, wkb_bad))

[Package wk version 0.3.4 Index]