[GRASSLIST:1417] Re: REPOST: d.vect cutting algorithm?

Eric G . Miller egm2 at jps.net
Fri Feb 2 21:25:01 EST 2001


On Fri, Feb 02, 2001 at 10:00:40AM +0100, Johansen Per Henrik wrote:
> Grasslist, 
> 
> I tried to send this request some days ago but it seems that it never
> reached the list. I apologize if this request should reach you twice.
> 
> I am having some difficulties when trying to join several vector layers into
> a raster file; GRASS will not draw vectors (polygons work fine) at the n
> leftmost and/or n rightmost pixels of the image. 
> 
> I use the d.area command to draw polygons and d.vect to draw lines. d.vect
> seems to cut off lines that stretches beyond the edge of the image. Is this
> a known problem or am I missing out on something?
> 
> An image that illustrate my point (roads and streams near the left edge is
> cut off) might be found at:
> 
> http://www3.norgit.no/apnee/D_cell.png
> 
> It is generated with the following GRASS commands:
> 
>    g.region n=4928226 s=4911624 e=612344 w=593807
>    d.mon start=CELL
>    d.mon select=CELL
>    d.area map=fields fillcolor=green linecolor=black
>    d.vect map=roads color=red
>    d.vect map=streams color=blue
>    d.mon stop=CELL
>    g.region raster=D_cell
>    r.out.png D_cell
> 
> I have also tried to use tcl/tk interface to generate the same image/map.
> Here everything seems to work fine, see http://www3.norgit.no/apnee/tcl.png
> 
> Anyone know what I am experiencing here?

You sure your vector layers (other than fields) continue to the west?
The D_cell version obviously contains more real estate on the west side
than the X monitor version.  The X monitor version draws the roads about
to where they "cut off" in the D_cell version.  So maybe the CELL driver
is drawing more than you want?

-- 
Eric G. Miller <egm2 at jps.net>




More information about the grass-user mailing list