-
Notifications
You must be signed in to change notification settings - Fork 7
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
cubble coerced from raster stars
object does not inherit CRS
#24
Comments
This also relates to another feature I hope cubble can have. Say, one creates a cubble from a tibble and would like to add a crs. One should be able to do this with something like:
This makes me think Let me know your thoughts on this. |
Yes, I agree this would be useful, also considering that one would not to create an
I imagine sf methods would only be for the |
Yes, if users decide to incorporate crs in their workflow, they should get familiar with sf objects. If crs becomes an additional attribute, then If Now, for both tbl_df and stars objects, they are first created as a cubble ( |
I see, I would argue that if I personally see the benefit of adding a crs variable, and not only adding |
Raster data cubes do not inherit the CRS when coerced to cubble. This is because the cubble creation is extracting the coordinate values as integers, losing the geometry here.
One option would be to coerce the tibble to sf before coercing to cubble before line 192, to recover the CRS:
or to add
make_spatial_sf()
after line 192:But that is not such a fast approach and also adds an extra geometry column that the user might find unexpected. So I am not sure what would be the best approach here.
The text was updated successfully, but these errors were encountered: