[GRASS-dev] New v.digit

Markus Neteler neteler at itc.it
Sat Feb 24 09:29:45 EST 2007


On Sat, Feb 24, 2007 at 07:03:22AM +0000, Glynn Clements wrote:
> 
> Markus Neteler wrote:
> 
> > What's the idea of the "-n" flag?
> 
> To create a new map. Are you asking why it doesn't just do this
> automatically if the map already exists?

Yes.

> Possibly so that you don't
> accidentally create a new map if you make a mistake entering the name
> of an existing map.

Well, no other GRASS command behaves like this.
But of course it's no real problem.
 
> > I could not find out the last
> > years :-) Can we disable it (in the common "deprecated" way)?
> 
> Ignoring it would be trivial; just remove the "if ( new_f->answer ) {"
> from around the code which creates a new map.

Interestingly (from a user's perspective), you can always use "-n",
also with existing maps.

Markus




More information about the grass-dev mailing list