wk (version 0.3.0)

wkb_problems: 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

Run this code
# NOT RUN {
# 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))

# }

Run the code above in your browser using DataLab