[GRASS5] r.patch needs 'multiple' switch

Michael Barton michael.barton at asu.edu
Wed Aug 4 00:50:11 EDT 2004

Thanks Glynn.

I was mistakenly under the impression that when the complete GRASS 5.7
source code was released in June, that everything was included in all
subsequent versions. Now I realize that is not the case for the CVS
versions, and much of the code still resides in the 5.3 source files.

Given that multiple = yes for r.patch, why do you think that it doesn't seem
to work? In fact, I don't think it works for any command.


> From: Glynn Clements <glynn.clements at virgin.net>
> Date: Wed, 04 Aug 2004 02:54:47 +0100
> To: Michael Barton <michael.barton at asu.edu>
> Cc: GRASS5 list <grass5 at grass.itc.it>
> Subject: Re: [GRASS5] r.patch needs 'multiple' switch
> Michael Barton wrote:
>> I have a question and I hope you all can excuse my ignorance on this. I
>> thought I¹d look at the r.patch command to check whether or not multiple was
>> not set or whether it was set but not working correctly before sending this
>> email. Then maybe I could even offer to make this very minor fix in modules
>> when I ran into this. However, I can¹t see where the actual r.patch program
>> is located. It is not in the source directory /grass51/raster/r.patch where
>> I expected it to be.
> r.patch is unchanged from 5.3. When you run "make mix", the directory
> raster/r.patch will be populated with symlinks to the files in
> src/raster/r.patch/cmd in the 5.3 source tree (determined by the
> argument to the --with-grass50= switch).
> And, yes, the "multiple" flag is set:
>     opt1 = G_define_option() ;
>     opt1->key        = "input";
>     opt1->type       = TYPE_STRING;
>     opt1->required   = YES;
>     opt1->multiple   = YES;
>     opt1->gisprompt  = "old,cell,raster" ;
>     opt1->description= "Name of raster maps to be patched together" ;
> -- 
> Glynn Clements <glynn.clements at virgin.net>

More information about the grass-dev mailing list