[GRASS-dev] [GRASS GIS] #798: r.in.gdal : subdataset handling

#798: r.in.gdal : subdataset handling
--------------------------+-------------------------
  Reporter: rouault | Owner: grass-dev@…
      Type: enhancement | Status: new
  Priority: normal | Milestone: 7.8.0
Component: Raster | Version: unspecified
Resolution: | Keywords: r.in.gdal
       CPU: All | Platform: All
--------------------------+-------------------------

Comment (by mmetz):

Replying to [comment:5 marisn]:
> GRASS 6.5 has EOLed, but this wish is still not implemented.
> r.in.gdal does not crash if subdatasets are present and prints a
warning, but still there is no option to print subdatasets.

Subdatasets are now (trunk r74373) printed if present, no flag needed.

Related but independent of that, import fails early if no raster bands are
found.

> A new input option "subdataset" should be introduced. It should accept
integer to indicate subdataset number for import (see gdalinfo output for
numbers). It would allow to import subdatasets without specifying them in
input parameter thus greatly simplifying work with subdatasets.

What exactly is the advantage of another new option "subdataset" instead
of providing the name of the subdataset to be imported? In any case, you
need to read the names and descriptions of the available subdatasets
first.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/798#comment:7&gt;
GRASS GIS <https://grass.osgeo.org>