[GRASS-dev] Overlay grids and lines tool in gism fails to dra wgrid in map wi ndow

Glynn Clements glynn at gclements.plus.com
Fri Sep 15 13:31:44 EDT 2006


Moritz Lennert wrote:

> > Ok. But d.grid worked for me in late July using the default color settings
> > in gis.m (some kind of light grey), without having to first use a predefined
> > color. The manpage says that RGB triplets can be used. Is this no longer the
> > case then?
> 
> I see:
> 
> revision 2.5
> date: 2006/04/18 05:19:49;  author: cedric;  state: Exp;  lines: +6 -38
> 
> Added gisprompts for color. Uses simplified (abstracted) color handling. 
> Removed colors.h header.
> 
> See diff here: 
> http://freegis.org/cgi-bin/viewcvs.cgi/grass6/display/d.grid/main.c.diff?r1=2.4&r2=2.5
> 
> This might be the problem, although it happened in April...

Revision 2.4 wouldn't have worked either. The R:G:B triplet would be
ignored, and d.grid would use the first available colour after the
predefined colours. Depending upon what you had been doing previously,
that colour *might* already be set to the R:G:B triplet you wanted.

The segfault is due to the recent changes to libraster. Before, any
R_* calls made prior to calling R_open_driver() would be silently
ignored; now, they'll result in a segfault.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list