[GRASS-dev] vector display clipping
Anna Petrášová
kratochanna at gmail.com
Wed Sep 17 19:55:30 PDT 2014
On Wed, Sep 17, 2014 at 9:40 PM, Anna Petrášová <kratochanna at gmail.com>
wrote:
>
>
> On Wed, Sep 17, 2014 at 6:56 PM, Glynn Clements <glynn at gclements.plus.com>
> wrote:
>
>>
>> Anna Petrášová wrote:
>>
>> > > > 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?
>>
>> Try r62026.
>>
>
> thanks a lot!
>
>>
>> This sets the clip region to the destination rectangle by default.
>>
>> However, there may be situations where this clips things which
>> shouldn't be clipped. E.g. if you're plotting points with
>> "d.vect ... icon=...", points near the edge of the map will probably
>> have their icons clipped to the bounds of the map.
>>
>
> yes, but that's fine (at least for me)
>
> but, d.rast freezes when I try to zoom to a map with png driver. With
> cairo driver, everything works fine.
>
Steps to reproduce (nc_spm_08):
export GRASS_RENDER_IMMEDIATE=png
g.region rast=elevation
export GRASS_WIDTH=100
export GRASS_HEIGHT=501
d.rast elevation
99%
The problem is here:
http://trac.osgeo.org/grass/browser/grass/trunk/lib/display/raster.c#L169
return (A_row < src[1][1]) ? A_row : -1;
-1 is never selected because src is always greater than A_row
>
>
>
> Anna
>
>
>> --
>> Glynn Clements <glynn at gclements.plus.com>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140917/f37b5b9e/attachment-0001.html>
More information about the grass-dev
mailing list