Skip to content
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

data cube type #248

Closed
edzer opened this issue Jan 27, 2020 · 2 comments
Closed

data cube type #248

edzer opened this issue Jan 27, 2020 · 2 comments

Comments

@edzer
Copy link
Member

edzer commented Jan 27, 2020

There is no function to find out what kind of data cube we have, e.g. when mapview or tmap want to plot it. I'm proposing to find out the type of raster (in case there is a spatial raster), using st_raster_type(x) returning one of NA (not a raster cube), regular, rectilinear, affine, curvilinear.

@tim-salabim
Copy link
Member

I think this is a good idea. At the moment I am naively doing

https://github.com/r-spatial/leafem/blob/master/R/addStarsImage.R#L77-L82

which only checks for affine or curvilinear.

@edzer edzer closed this as completed in 1fbdc9b Jan 28, 2020
@tim-salabim
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants