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

Glynn Clements glynn at gclements.plus.com
Fri Sep 15 01:44:26 EDT 2006


Maciej Sieczka wrote:

> Moritz Lennert wrote:
> 
> > Maciej Sieczka wrote:
> 
> >> d.grid segfaults for me too if I use RGB triplets for color or
> >> bordercolor. If I use names (blue, red etc.) it works.
> 
> > Actually it works as long as the RGB values are 0 or 255. As soon as
> > they are something else it segfaults.
> 
> Hmm, for me it segfaults whatever the values, eg.:
> 
> $ d.grid size=2000 origin=0,0 bordercolor=1:1:1
> Segmentation fault

d.grid calls D_parse_color() before calling R_open_driver(), which
won't work unless the colour is one of the predefined colours
(D_parse_color() allocates the specified colour within the driver then
returns the index of the allocated colour).

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




More information about the grass-dev mailing list