[GRASS-dev] vector display clipping

Anna Petrášová kratochanna at gmail.com
Wed Sep 17 13:34:38 PDT 2014


On Wed, Sep 17, 2014 at 4:18 PM, Glynn Clements <glynn at gclements.plus.com>
wrote:

>
> Anna Petrášová wrote:
>
> > > Using this functionality for graphical clipping is problematic if you
> > > use thick lines, as clipped lines will be capped at the point where
> > > they're clipped. It would also affect the dash offset for dashed lines
> > > (although that isn't implemented yet).
> >
> > Is there any way to set different default mode without modifying the
> code?
>
> No.
>
> > > Additionally, the driver's Set_window function establishes a clip
> > > region (e.g. via cairo_clip() for the cairo driver). This defaults to
> > > the entire "screen", but can be overridden by setting the environment
> > > variable GRASS_FRAME.
> > >
> > > Arguably, the code which sets up the coordinate system so that the
> > > current region just fits the display (D_setup) should also set the
> > > clip region to fit the current region.
> > >
> > > However, this is complicated slightly be the fact that there's no
> > > distinction between the display "frame" (either the screen or the
> > > frame set by GRASS_FRAME) and the current clip region, so setting a
> > > clip region would lose the only record of the frame.
> >
> > I still don't understand if the current behavior in 7 is intended and if
> > so, why no vector clipping is better?
>
> It isn't intended, it's an oversight.
>

I see. So, are you (or anyone else who understands this part of code) going
to do something about it?


>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140917/4317abca/attachment.html>


More information about the grass-dev mailing list