r-spatial / stars

Spatiotemporal Arrays, Raster and Vector Data Cubes
https://r-spatial.github.io/stars/
Apache License 2.0
563 stars 94 forks source link

Adapt internatl to_df function to work with sf tidyverse methods #709

Closed loreabad6 closed 2 months ago

loreabad6 commented 2 months ago

To have a sticky geometry behavior on stars objects with a geometry attribute the internal to_df() function could check if any sfc attribute is present. This would be helpful for the package post that I am building on top of stars. Alternatively, if this is too specific behavior, could to_df() be exported? Thanks!

edzer commented 2 months ago

LGTM!