gdal icon indicating copy to clipboard operation
gdal copied to clipboard

Allow GDAL raster bands to set parent name and name when converted to MDArrays

Open normanb opened this issue 6 months ago • 1 comments

Feature description

When using https://github.com/OSGeo/gdal/blob/master/gcore/gdalrasterband.cpp#L9551 which is called from poBand->AsMDArray(); it isn't possible to set the parent name or the array name.

The array name is easy enough to fix by changing the dataset description but then it gets appended with band n. The parent is always / which doesn't allowing nesting.

There are several raster formats which are a single file with multiple image segments which would benefit from being grouped as a multi dim structure with a hierarchy.

Additional context

No response

normanb avatar Jun 20 '25 23:06 normanb

it isn't possible to set the parent name or the array name.

is it just about the name of the array or about inserting the array as a child of a GDALGroup ? I guess a more extensive explanation of the use case would help finding the best technical solution

rouault avatar Jun 21 '25 10:06 rouault