Skip to content

Commit

Permalink
recompute bounding box for single postporcess
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Nov 6, 2023
1 parent 25bbfeb commit 4d95bec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/post-process.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ post_process_pbf <- function(x, use_sf = TRUE) {
if (is.data.frame(x)) {
x
} else if (is.list(x) && !is.null(names(x))) {
post_process_single(x, use_sf)
x <- post_process_single(x, use_sf)
if (use_sf) {
x[[attr(x, "sf_column")]] <- sf::st_sfc(x[[attr(x, "sf_column")]])
}
x
} else if (is.list(x) && is.null(names(x))) {
post_process_list(x, use_sf)
} else {
Expand Down

0 comments on commit 4d95bec

Please sign in to comment.