Mon, Nov 29 2004
22:11:01
|
|
Request created by guest
|
|
Subject: i.image.mosaic invoked from GUI fails on both 5.3 and 5.7
Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
Refers to GUI in both Grass 5.3cvs and 5.7cvs, 2004_11_13.
--- 5.7 ---
i.image.mosaic image1=N3350.blue image2=N3350.green image3=N3350.red
ATTENTION: Do not forget to set region properly to cover all images!
Mosaicing four images...
syntax error, unexpected '(', expecting '='
Parse error
tail: /home/grassdata/odrautm/wiz/colr/(null): No such file or directory
Ready. File N3350.blue.N3350.green.N3350.red.(null).mosaic created.
--- 5.3(5.5) ---
ATTENTION: Do not forget to set region properly to cover all images!
Mosaicing two images...
syntax error, unexpected ',', expecting '='
Parse error
cat: /home/grassdata/odrautm//colr/N3350.green,N3350.red: No such file or directory
Ready. File N3350.blue.N3350.green,N3350.red.mosaic created.
Maciek Sieczka |
|
Tue, Nov 30 2004
00:16:02
|
|
Mail sent by glynn@gclements.plus.com
|
|
Return-Path |
<glynn@gclements.plus.com>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
Glynn Clements <glynn@gclements.plus.com>
|
MIME-Version |
1.0
|
Content-Type |
multipart/mixed; boundary="WXk8jRUEA+"
|
Content-Transfer-Encoding |
7bit
|
Message-ID |
<16811.44441.735910.645045@cerise.gclements.plus.com>
|
Date |
Mon, 29 Nov 2004 23:15:37 +0000
|
To |
Request Tracker <grass-bugs@intevation.de>
|
Cc |
grass5@grass.itc.it
|
Subject |
Re: [GRASS5] [bug #2740] (grass) i.image.mosaic invoked from GUI fails on both 5.3 and 5.7
|
In-Reply-To |
<20041129211101.99034100169@lists.intevation.de>
|
References |
<20041129211101.99034100169@lists.intevation.de>
|
X-Mailer |
VM 7.17 under 21.4 (patch 15) "Security Through Obscurity" XEmacs Lucid
|
X-Spam-Status |
No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
|
X-Spam-Level |
|
--WXk8jRUEA+
Content-Type: text/plain; charset=us-ascii
Content-Description: message body and .signature
Content-Transfer-Encoding: 7bit
Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=2740
> -------------------------------------------------------------------------
>
> Subject: i.image.mosaic invoked from GUI fails on both 5.3 and 5.7
>
> Platform: GNU/Linux/i386
> grass obtained from: Mirror of Trento site
> grass binary for platform: Compiled from Sources
>
> Refers to GUI in both Grass 5.3cvs and 5.7cvs, 2004_11_13.
>
> --- 5.7 ---
>
> i.image.mosaic image1=N3350.blue image2=N3350.green image3=N3350.red
>
> ATTENTION: Do not forget to set region properly to cover all images!
>
> Mosaicing four images...
> syntax error, unexpected '(', expecting '='
> Parse error
> tail: /home/grassdata/odrautm/wiz/colr/(null): No such file or directory
> Ready. File N3350.blue.N3350.green.N3350.red.(null).mosaic created.
Right. i.image.mosaic checks whether the $GIS_OPT_* variables are
empty to determine if the option was supplied. But an omitted option
results in the variable having the value "(null)" rather than empty.
This is a bug in g.parser. Patch attached.
--
Glynn Clements <glynn@gclements.plus.com>
--WXk8jRUEA+
Content-Type: text/plain
Content-Description: g.parser patch
Content-Disposition: inline;
filename="g.parser.diff"
Content-Transfer-Encoding: 7bit
--- general/g.parser/main.c~ 2004-11-09 14:08:27.000000000 +0000
+++ general/g.parser/main.c 2004-11-29 23:14:03.000000000 +0000
@@ -290,7 +290,7 @@
for (option = ctx.first_option; option; option = option->next_opt)
{
char buff[1024];
- sprintf(buff, "GIS_OPT_%s=%s", option->key, option->answer);
+ sprintf(buff, "GIS_OPT_%s=%s", option->key, option->answer ? option->answer
: "");
putenv(G_store(buff));
}
--WXk8jRUEA+--
|
|
Thu, May 12 2005
16:56:36
|
|
Status changed to resolved by msieczka
|
|