Ticket #914 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

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:
Platform: All CPU: 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

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

Change History

Changed 2 years ago by glynn

Link all bands by default

in reply to: ↑ description ; follow-up: ↓ 2   Changed 2 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).

in reply to: ↑ 1 ; follow-up: ↓ 3   Changed 2 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 2 years ago by neteler

6.4 version of patch

in reply to: ↑ 2   Changed 2 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.

  Changed 2 years ago by neteler

  • status changed from new to closed
  • resolution set to fixed

Thanks, backported, closing.

Note: See TracTickets for help on using tickets.