Opened 15 years ago

Closed 15 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 15 years ago.
Link all bands by default
r_external64.diff (2.5 KB ) - added by neteler 15 years ago.
6.4 version of patch

Download all attachments as: .zip

Change History (6)

by glynn, 15 years ago

Attachment: r.external.patch added

Link all bands by default

in reply to:  description ; comment:1 by glynn, 15 years ago

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

in reply to:  1 ; comment:2 by neteler, 15 years ago

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.

by neteler, 15 years ago

Attachment: r_external64.diff added

6.4 version of patch

in reply to:  2 comment:3 by glynn, 15 years ago

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 by neteler, 15 years ago

Resolution: fixed
Status: newclosed

Thanks, backported, closing.

Note: See TracTickets for help on using tickets.