[GRASS5] r.patch color problem

Markus Neteler neteler at geog.uni-hannover.de
Fri Sep 8 09:11:44 EDT 2000


Hi all,

after upgrading r.patch to support additionally 0 (instead
of NULL) for transparency (-z flag), I still face a color
problem.

I have a set of single color input maps: rasterized layers
of a toposheet:

 - one layer road lines (black)
 - one layer forest areas (green)
 - one layer lakes
 etc.

These layers I want to patch to receive the full toposheet
back. But the resulting file is black and white only.
The original colors are not preserved. All input maps are
int (CELL type).

When looking into the sources:
src/raster/r.patch/cmd/support.c

there is a check:
[line 49]
  do_colr =  *colr_ok && (G_read_colors (names[i], mapset, &pcolr) >= 0);

As I have colored maps, it should be true. But it is set to
false. Maybe there is a bug in G_read_colors?

I would be glad to receive some assistance here.

>From GRASS 4 I remember that you receive strange color results of
mosaicking several colored aerial photos. Probably fixing above
problem would fix this, too.

Thanks for listening

 Markus

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list