[GRASS-dev] i.rectify should test for illegal file names
before launching rectification
Michael Barton
michael.barton at asu.edu
Tue Nov 6 13:45:28 EST 2007
Is this an error of requiring extension to be set? If so, this can be
changed in the C code of the module. This seems like the simplest solution.
Michael
On 11/6/07 8:57 AM, "Moritz Lennert" <mlennert at club.worldonline.be> wrote:
> On 06/11/07 16:27, Michael Barton wrote:
>> Sorry to be dense, but an *optioal* argument *must* be present in i.rectify,
>> even if it is empty? This seems like a very weird situation.
>
> It is not optional.
>
> This is not an issue in gis.m from where you cannot call i.rectify
> anymore (you have to go through the georectifying tool) .You can try it
> by typing i.rectify at the command line. In the tcltk window that pops
> up, just type any bogus values into all fields except for extension. If
> you click on run, you will get the error message:
>
> ERROR: Required parameter <extension> not set:
> (Output file extension (inputfile(s) + extension)).
>
> But in my case I don't want an extension, or, said differently, I want
> the extension to be empty. At the command line, I can just type
> 'extension=', but there is no way I can give an 'empty' value to the
> extension parameter in the tcltk gui.
>
>>
>> To do it in TclTk, I'd do it one of two ways, depending on which execution
>> procedure you are using.
>>
>> You could just put the whole command in quotes as a string.
>>
>> set cmd "i.rectify ... extension="
>>
>> [parse and run] cmd
>>
>> OR
>>
>> You could put the command in a list and parse it that way.
>>
>> set cmdlist [list "i.rectify" "arg1" "arg2" ... "extension="]
>>
>> [parse and run] cmdlist
>
> So this means we have to change g.parser as Glynn seems to suggest,
> especially if this concerns other modules as well.
>
> Moritz
>
__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
More information about the grass-dev
mailing list