Skip to content

Commit fd0553c

Browse files
committed
load_tree_data(): remove gdalraster attributes from the return object
1 parent d46b557 commit fd0553c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

R/load_tree_data.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ load_tree_data <- function(src, table = NULL, columns = DEFAULT_TREE_COLUMNS,
159159
d <- ds$fetch(-1)
160160
cli::cli_progress_done()
161161

162+
# make it a regular data frame without gdalraster attributes
162163
try(d$FID <- NULL, silent = TRUE)
164+
class(d) <- "data.frame"
165+
attr(d, "gis") <- NULL
163166

164167
if (nrow(d) == 0)
165168
cli::cli_alert_danger("No tree records were returned")

0 commit comments

Comments
 (0)