[GRASS-user] More QUESTIONS !?

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Mon Nov 5 11:01:36 EST 2007


Thank you!

I am checking on it...



Daniel Victoria wrote:
> 
> A long time ago (2003) I asked the same question about linking monitors!
> The tread is here:
> http://www.nabble.com/-GRASSLIST%3A5609--Linking-Monitors-tf3101985.html#a8608876
> 
> John Gillette came up with a nice script to do this using two display
> monitors, x0 and x1.
> Drawbacks:
> 1. You must use the old monitors, not a big problem I think
> 2. You must execute the script every time for each pan or zoom
> 3. Only one movement por script run (one pan or one zoom)
> 
> Maybe there is a way to implement this using the new displays...
> To use the old x displays, go to the grass command line and issue:
> d.mon start x0
> d.mon start x1
> This will start the monitors
> To select the monitor to use issue:
> d.mon select=x0
> d.erase erases the monitor
> d.rast map=your_map draws on the monitor
> 
> Good luck :)
> Daniel
> 
> The original message by John Gillette follows:
> ---------------------------------------------------------------------------------
> [GRASSLIST:5636] Linking Monitors script Click to flag this post
> 
> by John Gillette Feb 21, 2003; 05:50pm ::
> 
> 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
> 
> 
> 
> On Nov 5, 2007 7:39 AM, Moritz Lennert <mlennert at club.worldonline.be>
> wrote:
>> On 04/11/07 10:24, Nikos Alexandris wrote:
>> > Please excuse me for my "poor" descriptions before.
>> >
>> > The kinf of "Link" tool:
>> > ENVI, and ERDAS as well, provide a "Link" tool with which one can open,
>> > side-by-side, images of the same region and while panning, zooming or
>> > resizing one of the images, these actions are automatically mirrored to
>> the
>> > othe image.
>>
>> [...]
>>
>> > Is there an alternative way to replace this method (supporting a visual
>> > interpretation with ancillary data)? Would it be very difficult to
>> implement
>> > something like that?
>> >
>>
>> There is no such linking tool in GRASS. However, what you can do (in the
>> GIS Manager) is zoom to your desired region in one window, then (in the
>> Map Display window)  "Set current region to match display". You can then
>> "Zoom to current region" in the other Map Display windows.
>>
>> Or if you work with old-style monitors, zoom to desired region in one
>> monitor, then 'd.mon select' & 'd.redraw' in the others.
>>
>> Moritz
>>
>>
>> _______________________________________________
>> grassuser mailing list
>> grassuser at grass.itc.it
>> http://grass.itc.it/mailman/listinfo/grassuser
>>
> 
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser
> 
> 

-- 
View this message in context: http://www.nabble.com/More-QUESTIONS-%21--tf4731979.html#a13589468
Sent from the Grass - Users mailing list archive at Nabble.com.




More information about the grass-user mailing list