Skip to content

Commit

Permalink
set the oriented flag when exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Oct 11, 2024
1 parent 182d6c9 commit 4e1c215
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/pkg-sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,15 @@ st_as_sf.wk_xy <- function(x, ...) {
}

st_as_sfc.wk_rct <- function(x, ...) {
sf::st_set_crs(wk_handle(x, sfc_writer()), sf_crs_from_wk(x))
out <- sf::st_set_crs(wk_handle(x, sfc_writer()), sf_crs_from_wk(x))
attr(out, "oriented") <- TRUE
out
}

st_as_sfc.wk_crc <- function(x, ...) {
sf::st_set_crs(wk_handle(x, sfc_writer()), sf_crs_from_wk(x))
out <- sf::st_set_crs(wk_handle(x, sfc_writer()), sf_crs_from_wk(x))
attr(out, "oriented") <- TRUE
out
}

st_as_sf.wk_rct <- function(x, ...) {
Expand Down

0 comments on commit 4e1c215

Please sign in to comment.