this bug's URL: http://intevation.de/rt/webrt?serial_num=2463
-------------------------------------------------------------------------
Subject: Link two monitors geographically and zoom/pan in both simultaneously
Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass5.7.0
hello,
I would be great if two (or more) monitors can be linked to each other and to zoom/pan in
one would result the same in the other monitors or a rectangle would be placed to mark the
region which is currently shown in mon x0 .
This idea has been mentioned earlier and a short script is written by john Gillette (see
below), perhaps that makes it easier to implement it in GRASS.
thanks martin
wegmann@biozentrum.uni-wuerzburg.de
Hi Martin,
I had a similar problem once and John was kind enough
to send me this script. It links to grass displays
monitors so, whaever you look at in X0, X1 will
follow, like linking the displays geographically in
ERDAS.
Hope it helps, but don't thanks me, thanks John
Cheers
Daniel
--------------------------------------------------
From: "John Gillette" <JGillette@rfmd.com>
To: "Daniel Victoria" <daniel_victoria@yahoo.com>,
"Sandro Klippel" <sandro.klippel@talha-mar.com.br>,
"GRASSLIST" <grasslist@baylor.edu>
try this:
Select and then Erase x1 and then display what ever
you want there.
Select x0 and erase and display other info there.
Run this script to either pan or zoom in x0. After
finishing
the pan or zoom x1 will redraw it's contents at the
same region
thereby "following" what ever is done in x0.
The disadvantage is that you can only do 1 pan or zoom
at a time,
i.e. not interactively.
usage:
script_name z <- does zoom instead of pan
script_name
zooming and panning in x0. x0 is selected at exit.
Does this help?
John
------------------
#!/bin/sh
d.mon select=x1
monitor1=`d.save -o`
d.mon select=x0
if [ "$1" = "z" ]
then
d.zoom
else
d.pan
fi
region=`g.region -g`
d.mon select=x1
d.erase
g.region $region
eval "$monitor1"
d.mon select=x0
exit 0
-------------------------------------------- Managed by Request Tracker