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

Glynn Clements glynn at gclements.plus.com
Sat Apr 21 16:13:14 EDT 2007

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.

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list