Opened 12 years ago

Closed 12 years ago

#914 closed enhancement (fixed)

Add multi-channel "import" to r.external (as in r.in.gdal)

Reported by: neteler Owned by: grass-dev@…
Priority: normal Milestone: 6.5.0
Component: Raster Version: svn-trunk
Keywords: Cc:
CPU: All Platform: All

Description

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

Attachments (2)

r.external.patch (2.4 KB) - added by glynn 12 years ago.
Link all bands by default
r_external64.diff (2.5 KB) - added by neteler 12 years ago.
6.4 version of patch

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by glynn

Attachment: r.external.patch added

Link all bands by default

comment:1 in reply to:  description ; Changed 12 years ago by glynn

Replying to 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).

comment:2 in reply to:  1 ; Changed 12 years ago by neteler

Replying to glynn:

Replying to 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 :) Also tested with appropriate modifications in 6.4.

Changed 12 years ago by neteler

Attachment: r_external64.diff added

6.4 version of patch

comment:3 in reply to:  2 Changed 12 years ago by glynn

Replying to neteler:

Replying to glynn:

Replying to 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 :) Also tested with appropriate modifications in 6.4.

Committed to trunk in r40961.

comment:4 Changed 12 years ago by neteler

Resolution: fixed
Status: newclosed

Thanks, backported, closing.

Note: See TracTickets for help on using tickets.