[GRASS-dev] [GRASS GIS] #914: Add multi-channel "import" to r.external (as in r.in.gdal)

#914: Add multi-channel "import" to r.external (as in r.in.gdal)
-------------------------+--------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
     Type: enhancement | Status: new
Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-trunk
Keywords: | Platform: All
      Cpu: All |
-------------------------+--------------------------------------------------
Currently, r.external "imports" only the first channel, not all
available channels as r.in.gdal does:

{{{
r.in.gdal 014_03.jpg out=mymap -o
WARNING: Over-riding projection check
  100%
r.in.gdal complete. Raster map <dd.red> created.
  100%
r.in.gdal complete. Raster map <dd.green> created.
  100%
r.in.gdal complete. Raster map <dd.blue> created.
}}}

The behaviour of r.in.gdal is more user-friendly, could r.external be
improved?

thanks,
Markus

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/914&gt;
GRASS GIS <http://grass.osgeo.org>

#914: Add multi-channel "import" to r.external (as in r.in.gdal)
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-trunk
Resolution: | Keywords:
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by glynn):

Replying to [ticket:914 neteler]:
> Currently, r.external "imports" only the first channel, not all
> available channels as r.in.gdal does:

> The behaviour of r.in.gdal is more user-friendly, could r.external be
improved?

Try the attached patch (untested).

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/914#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#914: Add multi-channel "import" to r.external (as in r.in.gdal)
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-trunk
Resolution: | Keywords:
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by neteler):

Replying to [comment:1 glynn]:
> Replying to [ticket:914 neteler]:
> > Currently, r.external "imports" only the first channel, not all
> > available channels as r.in.gdal does:
>
> > The behaviour of r.in.gdal is more user-friendly, could r.external be
improved?
>
> Try the attached patch (untested).

As always, it works out of the box :slight_smile: Also tested with appropriate
modifications in 6.4.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/914#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#914: Add multi-channel "import" to r.external (as in r.in.gdal)
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: new
  Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-trunk
Resolution: | Keywords:
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Comment (by glynn):

Replying to [comment:2 neteler]:
> Replying to [comment:1 glynn]:
> > Replying to [ticket:914 neteler]:
> > > Currently, r.external "imports" only the first channel, not all
> > > available channels as r.in.gdal does:
> >
> > > The behaviour of r.in.gdal is more user-friendly, could r.external
be improved?
> >
> > Try the attached patch (untested).
>
> As always, it works out of the box :slight_smile: Also tested with appropriate
modifications in 6.4.

Committed to trunk in r40961.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/914#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#914: Add multi-channel "import" to r.external (as in r.in.gdal)
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: grass-dev@lists.osgeo.org
      Type: enhancement | Status: closed
  Priority: normal | Milestone: 6.5.0
Component: Raster | Version: svn-trunk
Resolution: fixed | Keywords:
  Platform: All | Cpu: All
--------------------------+-------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

Thanks, backported, closing.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/914#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>