-
Notifications
You must be signed in to change notification settings - Fork 94
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
feat: add GDALRasterizeGeometries
wrapper
#213
feat: add GDALRasterizeGeometries
wrapper
#213
Conversation
…ib/gdal into feature/add-GDALRasterizeGeometries
I haven't looked too closely, but it feels like |
Ah, that makes more sense. Done! |
I'm not 100% certain where the best place to put this is. I considered making it a I'm also not 100% convinced that passing in separate slices for |
Sorry for taking so long on this. I don't mind where the code sits, but I'm not too fond of that |
No worries on the delay; everyone is busy and I really appreciate your review! This version uses a There are a few places that use asserts for input validation; would you prefer that I replace those with real errors added to |
Actually, the asserts were bothering me, so I just put in more proper error handling, but I'm happy to remove it if you prefer. |
Yeah, that looks better. I'm not too keen on the name, but I don't have any great suggestion (
The error on special characters is kinda' fine, though I'm not sure it's really required. GDAL doesn't do anything fancy there, I think their point is simply to not have the separator in the key. The other checks are less idiomatic: the user gave us some bogus arguments that don't make sense. It's closer to "used the wrong index in an array" than "a file was missing from disk". To put it differently, if you made this mistake in your code, would you prefer a panic right off the bat, or an error that was propagated up the stack until handled somewhere? But I'm around "-0" on these, and feel free to ignore my opinion anyway (or to wait/ask for another one). |
Sorry for my confusion, but do you want any other changes? |
Ah, no, I don't have any other strong feelings about the panics, but maybe someone else wants to take a look? |
bors r+ I guess we can still iterate on this if anything comes up. |
Build succeeded: |
CHANGES.md
if knowledge of this change could be valuable to users.This new function
rasters::rasterize
lets you "burn in" a sequence ofvector::Geometry
objects into a rasterDataset
.