Fri, Nov 9 2001
12:03:05
|
|
Request created by alange
|
|
Subject: d.save does not recognize region settings
Platform: Linux/Intel
Linux distro: RedHat
linux cpu: Intel (i486, i586, pentium ...)
Xwindows version: Xfree 3.3.6
TclTk version: tcl/tk 8.3
grass downloaded at: CVS Server, Germany
grass binary for platform: I compiled the sources myself
grass sources source: yes, I am using the latest GRASS from CVS
c compiler name: gcc
d.save -a and d.save do not recognize/save the current region settings.
e. g. running:
g.region nsres=1000 ewres=1000
and then
d.erase
d.rast elevation.dem
d.save -a:
output =
# Shell Script created by d.save Fri Nov 9 12:01:32 2001
# Here are the commands to create window: full_screen
d.frame -c frame=full_screen at=0,100,0,100
d.erase
g.region n= s= e= w= nsres= ewres=
d.rast map=elevation.dem # 1
d.frame -s frame=full_screen |
|
Fri, Nov 9 2001
12:36:37
|
|
Mail sent by glynn.clements@virgin.net
|
|
Return-Path |
<glynn.clements@virgin.net>
|
Delivered-To |
grass-bugs@mailman.intevation.de
|
From |
Glynn Clements <glynn.clements@virgin.net>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset=us-ascii
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<15339.48927.642124.595310@cerise.nosuchdomain.co.uk>
|
Date |
Fri, 9 Nov 2001 11:33:51 +0000
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #826] (grass) d.save does not recognize region settings
|
In-Reply-To |
<20011109110306.3C4EE13A09@mailman.intevation.de>
|
References |
<20011109110306.3C4EE13A09@mailman.intevation.de>
|
X-Mailer |
VM 6.94 under 21.4 (patch 4) "Artificial Intelligence (candidate #1)" XEmacs Lucid |
Request Tracker wrote:
> d.save -a and d.save do not recognize/save the current region settings.
d.save works fine. The problem is that d.erase removes the "m_win"
property from the monitor. The property will only be restored when
something calls D_check_map_window(), either directly or via D_setup()
or Dcell().
Maybe d.erase should call D_setup()?
--
Glynn Clements <glynn.clements@virgin.net>
|
|
Fri, Dec 14 2001
00:00:31
|
|
Mail sent by alange
|
|
If that change solves the problem it should be done.
My problem is that the generated script from d.save does not reconstruct the
monitor with the correct region settings.
Andreas
|
|
Fri, Jan 4 2002
23:50:43
|
|
Comments added by alange
|
|
While testing this, it seems to me that adding D_setup(1); to d.erase does not
help.
The problem is that:
GRASS:/usr/local/grass.src/grass > d.save -a
:
# Shell Script created by d.save Fri Jan 4 23:03:04 2002
# Here are the commands to create window: full_screen
d.frame -ec frame=full_screen at=0,100,0,100
d.erase
g.region n= s= e= w= nsres= ewres=
d.rast map=dem # 1
d.frame -s frame=full_screen
GRASS:/usr/local/grass.src/grass > d.save -a > test.sh
GRASS:/usr/local/grass.src/grass > sh test.sh
<n=> ** illegal value **
100%
GRASS:/usr/local/grass.src/grass >
the generated shell script does not work.
A short fix would be to remove the g.region in d.save alltogether, but this is
not the intended usage of the module.
NB. It seems that d.rast does manipulate the pad items directly, if i add the
d.erase color=green with D_add_to_list() this is somehow erased from the list
after calling d.rast.
Another remark:
d.rast seems to erase the pad completely, as this does not happen if i draw
the raster with -o and/or draw vector maps.
Andreas |
|
Sun, Mar 3 2002
21:53:29
|
|
Mail sent by gclements
|
|
There was code to check that the region settings existed, but it didn't work
for the first frame. This should now be fixed.
|
|
Sun, Mar 3 2002
21:53:37
|
|
Status changed to resolved by gclements
|
|