[GRASS-user] display manager in a script

Jachym Cepicky jachym.cepicky at gmail.com
Mon Mar 19 03:39:42 EDT 2007


Hi,
this feature will be available in the new wxPython interface

For Tcl/Tk, I do not know

Jachym

2007/3/18, Massimo Di Stefano <massimodisasha at yahoo.it>:
> Hi,
> i'm try to writing a script to connect grass - gps-receiver
>
> It take the data from a srial port ( tty.bluethout_receiver)
> visualize the output in a standard "x" monitor
> refreshing the region using a $range (distance in meters from current
> gps point )
>
> using "simple" monitor (d.mon x0) ,
> i'm not able to use functions like "zoom-pan-measure"
> it is possible to use a "display manager" instead of mon. x0 in a
> bash script ? ...
> or writing an specific tcl script ?
>
>
>
>
> at least i can try to manage only the "zoom" option,
> at this moment i'm able to set the $range value in the scrip-gui as a
> $Gid_Opt_obect
>
> the region is processed in the script using a code like :
>
> while read line;
> do echo " $line" > line ;
> eval $( v.info point -g );
> n="`echo \"($var1 + $range)\"|bc -l`";
> s="`echo \"($var2 + $range)\"|bc -l`";
> e="`echo \"($var3 + $range)\"|bc -l`";
> w="`echo \"($var4 + $range)\"|bc -l`";
> echo "$n $s $e $w"
> g.region n s e w
> ....d.vect etc...
> done < $file
>
> it is possible to use somethink like a tcl-tk widget to have an
> iteractivley managment of $range  value ?
>
>
>
> thanks for anhy suggestions :-)
>
> Massimo.
>
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser
>


-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub




More information about the grass-user mailing list