Replies: 1 comment
-
|
Yes this is doable in C++ and wouldn't need a cli version of AsClassicDataset(). The factory functions are a feature of Rcpp Modules that I used in a few cases, but they aren't necessary to return objects of class Mdim is analogous to the case when cli output is a vector dataset. Mdim is similar but it's possibly more complicated to specify the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
(as suggested in #759)
I'm not sure we can do much more than generate a new dataset (VRT or MEM or file), because there's no cli version of AsClassicDataset().
From here we can create a new GDALRaster in C++, which is convenient but doesn't use AsClassicDataset, and can't support VRT afaics.
gdal mdimdoes not support GDALG streaming, andgdal mdim convertonly returns a "classic dataset" when only one array is present and the format implied or specified is 2D-only. (for example if we used /vsimem/out.vrt above that would be a MDIM dataset, even though it's only one array - that might be a valid feature request for GDAL itself, --classic mode ongdal mdim convert)Unless I'm missing something, I think we have to have dedicated C++ code for this, I'll keep exploring. I tried a "factory" approach for GDALRaster here and that works (no support for View yet) - I hadn't understood that stuff before.
main...mdsumner:gdalraster:as-classic-mdim-factory
Beta Was this translation helpful? Give feedback.
All reactions