Glynn Clements wrote:

> > > Can you get the GUI to display the exact commands being used, and
> > > check whether the problem exists when the command is run from the
> > > shell?
> > 
> > Nope, everything runs fine from the shell, with e.g. the following command:
> > 
> > d.vect [EMAIL PROTECTED] color=0:0:0 lcolor=0:0:0 
> > fcolor=170:170:170 display=shape type=point,line,boundary,area 
> > icon=basic/circle size=5 layer=1 lsize=8 xref=left yref=center llayer=1
> 
> This produces a blank image with the cairo driver, but works with the
> PNG driver. I'll look into it today.

It turns out that the polgon/polyline operations weren't setting the
"modified" flag, so the completed image wasn't written to the file. 
The centroids were drawn using individual line segments, which do set
the flag.

Fixed in r32731.

> For the above test case, the vector formats work even without the
> centroids.

Vector formats are written sequentially; a FILE* is specified when the
"surface" is created, and each operation appends data to the stream.

Raster output involves drawing to a framebuffer, which needs to be
explicitly written to a file.

-- 
Glynn Clements <[EMAIL PROTECTED]>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to