Fri, May 23 2003
14:23:37
|
|
Request created by guest
|
|
Subject: d.pan: sets new region by raster grid resolution
Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: 5.0.2
I don't know if this is an intended feature or a bug, but:
While working with a mapset that consists of fine scale vectors and points only,
with the (unused) region resolution set to fairly coarse...
Next, zoom in on a feature.
d.pan will only reposition along the raster grid, not on the mouse click. (in
my case this was a clicking around and nothing happens, until you get to the
edge of the screen, when it would jump a lot)
clicking the middle mouse button for position shows this behaviour as well.
maybe the module shouldn't be so raster-centric? especially for 5.1 ..
If the resolution was greater than the region, d.pan might appear to 'fail' for
no reason.
I was working in Lat/Lon, fwtw
e.g.
src/display/d.pan/center.c:
screen_y = (int) D_u_to_d_row (north);
screen_x = (int) D_u_to_d_col (east);
t = (window->north - north) / window->ns_res;
north = window->north - (t+.5) * window->ns_res;
t = (window->east - east) / window->ew_res;
east = window->east - (t+.5) * window->ew_res;
comments?
Hamish
|
|
Fri, May 23 2003
15:20:33
|
|
Mail sent by blazek@itc.it
|
|
Return-Path |
<blazek@itc.it>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Message-Id |
<200305231320.h4NDKP009546@janacek.itc.it.>
|
Content-Type |
text/plain; charset="iso-8859-1"
|
From |
Radim Blazek <blazek@itc.it>
|
To |
Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #1895] (grass) d.pan: sets new region by raster grid resolution
|
Date |
Fri, 23 May 2003 15:20:25 +0200
|
X-Mailer |
KMail [version 1.3.2]
|
References |
<20030523122337.0358813B55@lists.intevation.de>
|
In-Reply-To |
<20030523122337.0358813B55@lists.intevation.de>
|
MIME-Version |
1.0
|
Content-Transfer-Encoding |
8bit
|
X-Spam-Status |
No, hits=-1.6 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02 version=2.44
|
X-Spam-Level |
|
d.zoom -f can also pan.
Radim
On Friday 23 May 2003 14:23, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=1895
> -------------------------------------------------------------------------
>
> Subject: d.pan: sets new region by raster grid resolution
>
> Platform: GNU/Linux/i386
> grass obtained from: Trento Italy site
> grass binary for platform: Compiled from Sources
> GRASS Version: 5.0.2
>
> I don't know if this is an intended feature or a bug, but:
>
> While working with a mapset that consists of fine scale vectors and points
> only, with the (unused) region resolution set to fairly coarse...
>
> Next, zoom in on a feature.
>
> d.pan will only reposition along the raster grid, not on the mouse click.
> (in my case this was a clicking around and nothing happens, until you get
> to the edge of the screen, when it would jump a lot)
>
> clicking the middle mouse button for position shows this behaviour as well.
>
>
> maybe the module shouldn't be so raster-centric? especially for 5.1 ..
> If the resolution was greater than the region, d.pan might appear to 'fail'
> for no reason.
>
> I was working in Lat/Lon, fwtw
>
>
> e.g.
> src/display/d.pan/center.c:
>
> screen_y = (int) D_u_to_d_row (north);
> screen_x = (int) D_u_to_d_col (east);
>
> t = (window->north - north) / window->ns_res;
> north = window->north - (t+.5) * window->ns_res;
>
> t = (window->east - east) / window->ew_res;
> east = window->east - (t+.5) * window->ew_res;
>
>
>
> comments?
>
>
> Hamish
|
|
Mon, Sep 20 2004
06:38:14
|
|
Status changed to stalled by hbowman
|
|
Mon, Sep 20 2004
06:38:14
|
|
Comments added by hbowman
|
|
'd.zoom -p' supersedes d.pan in GRASS 5.7.
bug status: "wont fix"
Hamish
|
|