-
Notifications
You must be signed in to change notification settings - Fork 8
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
different results with getMetadataItem
depending on variable input order
#648
Comments
also to my understanding the |
Well, it is expected, but no, it would not be expected by most R users. Mainly, your question highlighted the need to document that clearly which was lacking. That has been done in #654, and now rendered online at GDALRaster: https://usdaforestservice.github.io/gdalraster/reference/GDALRaster-class.html Happy to take suggestions for any changes that would improve. There is a longer answer relating to the design choice with directly exposed C++ classes, which has certain implications for usability as you discovered. Legitimate criticism of the approach can be made. I believe the overall downsides are limited and involve trade offs that are worthwhile, especially given the intent and role that I see for the package. It's been on my mind for a long time to document my rationale, which could be helpful for potential users to better understand and adopt the interface. I will try to do that in the near future.
That makes sense to me. However, since the package aims to provide API-level bindings to GDAL (roughly "osgeo-like" bindings), I almost always follow its method signatures and calling semantics (probably to a fault in some cases, and a small number of lapses in others). With some exceptions, most of the |
Thanks for the detailed description, this wasn't clear to me but now I guess I understand the concept. |
Should we make a internal (R) versions for the export, and save the external name/s for the R wrapper? I'm used to doing that with Rcpp, names like "package_fun_cpp" wrapped by "package_fun()" - but is there more to it with modules, I guess we lose the documentation but can't we get that by documenting the R wrapper? (Asking, without trying... 🙏) |
Is it expected that
getMetadataItem
returns different reults depending on variable order in function?I expected both variants to return "DEFLATE".
(I didnt test development version, so it might be fixed already)
Created on 2025-03-06 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: