[GRASS-dev] 7.x Status Update

Glynn Clements glynn at gclements.plus.com
Tue Aug 12 20:33:46 EDT 2008


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 map=boundary_county at PERMANENT 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 <glynn at gclements.plus.com>


More information about the grass-dev mailing list