[GRASS-dev] discussion: replacing ps.map

Glynn Clements glynn at gclements.plus.com
Fri Mar 30 05:40:28 EDT 2007


Maciej Sieczka wrote:

> >> At present, there are doubtless many things which don't work
> >> correctly, or are sub-optimal (especially polygon filling, which
> >> currently uses the generic software renderer, i.e. lots of horizontal
> >> lines).
> > 
> > I've fixed this; R_polygon_{abs,rel} will get PostScript to do the
> > filling. With d.vect, you need to use render={r,d,c} to prevent it
> > from using G_plot_polygon().
> 
> Different render methods are not explained in d.vect manual. Where can
> I read about them?

In the d.vect source code, or the mailing list archives.

Summary:

	g:	G_plot_polygon
	d:	D_polygon
	c:	D_polygon_clip
	r:	local_plot_polygon (should be identical to d)

The default is "g", which does its own rasterisation, and thus won't
work correctly with non-raster drivers (currently HTMLMAP and PS).

The render= option is meant to be a temporary hack so that people had
a chance to test render=c before it replaced the previous mechanism
(render=g).

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




More information about the grass-dev mailing list