[GRASS-dev] [grass-code I][377] d.vect map disp=dir now broken: G_plot_icon() bug?

Markus Neteler neteler at itc.it
Sat Apr 21 17:03:01 EDT 2007


On Sat, Apr 21, 2007 at 09:13:14PM +0100, Glynn Clements wrote:
> 
> grass-codei at wald.intevation.org wrote:
> 
> > code I item #377, was opened at 2007-04-21 22:05
> > Status: Open
> > Priority: 3
> > Submitted By: Markus Neteler (markusn)
> > Assigned to: Nobody (None)
> > Summary: d.vect map disp=dir now broken: G_plot_icon() bug? 
> > Issue type: module bug
> > Issue status: None
> > GRASS version: CVS HEAD
> > GRASS component: None
> > Operating system: all
> > Operating system version: 
> > GRASS CVS checkout date, if applies (YYMMDD): 
> > 
> > 
> > Initial Comment:
> > Since a few days the "disp=dir" no longer works.
> > I recall to have seen some G_plot_icon() modifications. Could this
> > be related? The positioning is right but the symbol invisible:
> 
> It could be related. I ended up multiplying by the scale twice, so if
> the scale factor is significantly less than unity, the icons could end
> up invisible.
> 
> Try changing lines 29-30 of lib/gis/icon.c to:
> 
> 	x[i] = m[0][0] * x[i] + m[0][1] * y[i] + xc;
> 	y[i] = m[1][0] * x[i] + m[1][1] * y[i] + yc;
> 
> I'll commit this when CVS comes back to life.

I have tried but it doesn't seem to help.
Does it work for you now?

Markus




More information about the grass-dev mailing list