[GRASS-dev] Re: wxGUI: zoom-to missing in RGB mode

Markus Neteler neteler at osgeo.org
Tue Sep 29 14:25:57 EDT 2009


On Tue, Sep 29, 2009 at 6:53 PM, Hamish <hamish_b at yahoo.com> wrote:
>> Additional observation (bug): When loading an RGB set into
>> the wxGUI, it contains the extension .red in the "map" name which
>> should be omitted (stripped off) since a RGB composite is shown
>
> ... but I was looking at LANDSAT band numbers, so no .red, .green, .blue
> to strip off.

Alternative idea:
keep only what's common in the three names:

lsat.1 + lsat.2 + lsat.3 => lsat[.rgb]
ortho.red + ortho.green + ortho.blue => ortho[.rgb]

If nothing is in common, then simply attach with / separator:
string + strong + strung => string/strong/strung[.rgb]

Markus


More information about the grass-dev mailing list