[GRASS5] overwriting

I don't know wether this should be considered as bug or feature, but in
v.db.reclass and in v.to.rast (presumably also in other modules), I get no
warning when I overwrite an existing map. In terms of user-friendliness, this
might be a problem.

as far as I know many modules don't warn you (except r.mapcalc and some others)
so it would be quite a bit of work to add it, but it should be done - Markus,
maybe you should put it into the TO DO list so that developers know about it
and as modules are enhanced/updated this feature can be added

helena

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

On Wed, Dec 20, 2000 at 10:13:57AM -0600, Helena Mitasova - staff wrote:

>I don't know wether this should be considered as bug or feature, but in
>v.db.reclass and in v.to.rast (presumably also in other modules), I get no
>warning when I overwrite an existing map. In terms of user-friendliness, this
>might be a problem.

as far as I know many modules don't warn you (except r.mapcalc and some others)
so it would be quite a bit of work to add it, but it should be done - Markus,
maybe you should put it into the TO DO list so that developers know about it
and as modules are enhanced/updated this feature can be added

Hi all,

this is an important issue I was already thinking to add to TODO.
Currently there is no consistency. It could be added easily to
make the module ask: "may I overwrite?" - But: In script mode
we don't want such questions (or every module needs *another* parameter
to allow silent overwriting).

I am not sure what we want:
- change modules to ask for overwriting in both interactive and command line
  mode
- change modules to ask for overwriting in interactive mode, but silently
  overwrite in command line mode

Comment are welcome,

Markus

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Markus

Markus Neteler wrote:

It could be added easily to
make the module ask: "may I overwrite?" - But: In script mode
we don't want such questions (or every module needs *another*
parameter to allow silent overwriting).

This is the ideal solution from a software engineering point of view.
That is, always ask for overwriting, but allow a command line option to
override it. Of course it would be great if we could find a value for
the option that can be consistently used for all the modules. But I have
no idea if that is possible though. I don't know how the command line
parser interprets flags, but if it can only accept single character
flags, then I would say it would be worth changing it to accept multiple
character flags just to implement this feature. Then we could choose
whatever flag we want like -ow or even -overwrite. I'm willing to change
the command line parser if we agree to this and if the parser needs to
be changed.

I am not sure what we want:
- change modules to ask for overwriting in both interactive and
  command line mode

Yes.

- change modules to ask for overwriting in interactive mode, but
  silently overwrite in command line mode

No, this mode would defeat the purpose of the warning.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

On Thu, Dec 21, 2000 at 08:36:25AM +0700, Justin Hickey wrote:

This is the ideal solution from a software engineering point of view.
That is, always ask for overwriting, but allow a command line option to
override it. Of course it would be great if we could find a value for
the option that can be consistently used for all the modules. But I have
no idea if that is possible though. I don't know how the command line
parser interprets flags, but if it can only accept single character
flags, then I would say it would be worth changing it to accept multiple
character flags just to implement this feature. Then we could choose
whatever flag we want like -ow or even -overwrite. I'm willing to change
the command line parser if we agree to this and if the parser needs to
be changed.

Well, I think a flag like '-f', is pretty standard (as in "rm -rf /" !).
I don't think any change in parser behavior is required. Modules can
handle this pretty easily.

--
Eric G. Miller <egm2@jps.net>

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'