No subject
grass-lists-owner at max.cecer.army.mil
grass-lists-owner at max.cecer.army.mil
Wed Nov 24 14:39:31 EST 1993
***** UNDELIVERABLE MAIL sent to csun, being returned by zircon.nr.usu.edu!dharris *****
mail: Error # 2 'Problem with mailfile' encountered on system zircon.nr.usu.edu
Received: from max.cecer.army.mil by zircon.nr.usu.edu via SMTP (920330.SGI/920502.SGI.AUTO)
for csun id AA01704; Wed, 24 Nov 93 12:39:26 -0700
Received: from amber.cecer.army.mil by max.cecer.army.mil with SMTP id AA08204
(5.67a/IDA-1.5 for <csun at zircon.nr.usu.edu>); Wed, 24 Nov 1993 13:41:48 -0600
Received: from max.cecer.army.mil by amber.cecer.army.mil (4.1/SMI-4.1)
id AA03499; Wed, 24 Nov 93 13:34:03 CST
Received: from zorro.cecer.army.mil by max.cecer.army.mil with SMTP id AA08132
(5.67a/IDA-1.5 for <grassu-people at max.cecer.army.mil>); Wed, 24 Nov 1993 13:34:03 -0600
Received: from amber.cecer.army.mil by zorro.cecer.army.mil with SMTP id AA05406
(5.67a/IDA-1.4.4 for <grassu-people>); Wed, 24 Nov 1993 13:34:00 -0600
Received: from max.cecer.army.mil by amber.cecer.army.mil (4.1/SMI-4.1)
id AA03493; Wed, 24 Nov 93 13:33:57 CST
Received: from vinny.cecer.army.mil by max.cecer.army.mil with SMTP id AA08126
(5.67a/IDA-1.5 for <grassu-list at moon>); Wed, 24 Nov 1993 13:33:58 -0600
Received: by vinny.cecer.army.mil (4.1/SMI-4.1)
id AA08077; Wed, 24 Nov 93 13:33:57 CST
From: wade at vinny.cecer.army.mil (Scott Wade)
Message-Id: <9311241933.AA08077 at vinny.cecer.army.mil>
Subject: Re: outline of region (wish list)
Sender: grass-lists-owner at max.cecer.army.mil
Reply-To: grassu-list at max.cecer.army.mil
Precedence: Bulk
Sender: grass-lists-owner at moon.cecer.army.mil.
Reply-To: grassu-list at moon.cecer.army.mil.
Precedence: Bulk
To: grassu-list at max.cecer.army.mil
Date: Wed, 24 Nov 93 13:33:56 CDT
X-Mailer: ELM [version 2.2 PL0]
grassu-list:
Ronald Wiemer, ARCHIS, The Netherlands (ronald at archis.nl),
recently shared a shell script that can quickly display
the outline of the current region.
I used his script as the basis of a script that can be used
to display the outline of any region stored in a windows directory
in the current mapset searchpath. This might be useful to outline
areas of interest ('insets') or to help find predefined areas.
Usage: d.region.sh region_file color
Default drawing color can easily be changed by editing line 3.
This is just a simple Bourne shellscript and it might have some bugs.
Any feedback would be appreciated.
- Scott Wade wade at vinny.cecer.army.mil
---8<-----cut here-----8<---------------
:
DEFCOLOR=white
if [ ! "$GISBASE" ]
then
1>&2 echo
1>&2 echo "Error: must be in GRASS to use `basename $0`"
1>&2 echo
exit
fi
case $# in
1|2) REGION=$1;
case $2 in
red|orange|yellow|green|blue|indigo|white|black|brown|magenta|aqua|gray|grey) COLOR=$2;;
*) COLOR=$DEFCOLOR;1>&2 echo;1>&2 echo "Using default color $DEFCOLOR";1>&2 echo;;
esac;;
*) 1>&2 echo;1>&2 echo "Usage: `basename $0` region_file color";1>&2 echo;exit;;
esac
eval `g.findfile element=windows file=$REGION`
if [ "$file" ]
then
eval `g.region -gu region=$REGION`
else
1>&2 echo
1>&2 echo "Error: no region file called $REGION"
1>&2 echo
exit
fi
d.mapgraph color=$COLOR << EOF
move $w $s
draw $e $s
draw $e $n
draw $w $n
draw $w $s
EOF
More information about the grass-user
mailing list