Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion to sfc fails for NULL wkb items #135

Closed
paleolimbot opened this issue Jan 14, 2022 · 0 comments
Closed

Conversion to sfc fails for NULL wkb items #135

paleolimbot opened this issue Jan 14, 2022 · 0 comments

Comments

@paleolimbot
Copy link
Owner

library(wk)

(x <- as_wkb(c("LINESTRING (0 0, 1 1)", NA)))
#> <wk_wkb[2]>
#> [1] <LINESTRING (0 0, 1 1)> <<null feature>>

sf::st_as_sfc(x)
#> Error in st_as_sfc.WKB(structure(x, class = "WKB"), EWKB = TRUE): inherits(x, "WKB") && all(vapply(x, is.raw, TRUE)) is not TRUE

Created on 2022-01-13 by the reprex package (v2.0.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant