[gdal-dev] dataset with no driver?

Michael Sumner mdsumner at gmail.com
Mon Jul 21 20:04:00 PDT 2025


Hi, this is new to me -  casting from MDIM results in a dataset with a null
driver:

ds = gdal.Open("../gdrivers/data/small_world.tif")
ds.GetRasterBand(1).AsMDArray().AsClassicDataset(0,1).GetDriver()

(stupid question:   )
It makes sense to me for GTiff which has no MDIM capability, but how then
does the work get done?

I noticed by going from truly MDIM netcdf to AsClassicDataset() - I'd
expected that the NetCDF driver was still involved.

Does this mean we just have to test for null driver and report <none> in
that case generally?

Thanks, Mike




-- 
Michael Sumner
Ordinary Member,  Streets People Love Hobart Association
Research Software Engineer
Australian Antarctic Division
Hobart, Australia
0438489030
e-mail: mdsumner at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250722/71c94f72/attachment.htm>


More information about the gdal-dev mailing list