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
Suggestion - makeTiles()
using SpatVector
#920
Comments
Thanks for that suggestion. I think the documentation suggesting that you can use a SpatVector was an error (I do not think I intended to implement that). You can now do:
Another option that to consider could be add to add an argument that would allow you to specify certain amount of expansion, in terms of rows and columns, when |
This is excellent, thanks so much! |
How about yet another option to use only a number of columns and rows to make tiles? A way without specifically creating/using another SpatRaster with a lower resolution? |
Hi Robert,
I am currently working on a project where raster processing requires a bit of overlap between tiles (processing is spatially contextual and edges cause artifacts) that will eventually be mosaiced. I noticed in the
makeTiles
documentation thaty - SpatRaster or SpatVector
but gives the errorError: [makeTiles] y must be a SpatRaster
when called. Not sure if this is intended or not.With that being said, it would be really useful to be able to leverage spatVectors (or have an option to buffer tile extents from the
y
spatRaster) to generate overlapping tiles like the theoretical example below. I know I could write a loop tocrop()
the raster over each feature, but figured that could be avoided with the proposed functionality. If there is already a method for this or it has been discussed before I apologize 😄 .Thanks ahead of time and much appreciated for developing such a great package.
Proposed example reprex
The text was updated successfully, but these errors were encountered: