[GRASS-dev] still problems with overwrite in scripts

Martin Landa landa.martin at gmail.com
Thu Jun 28 00:10:37 PDT 2012


Hi,

2012/6/28 Michael Barton <michael.barton at asu.edu>:
> #%option G_OPT_R_INPUT
> #%  key: ms3
> #%  description: Input raster map for red channel
> #%end
>
> So there is no way to add "new" unless I redo the options section.

but this is standard option for input not output! "new" refers to
`gisprompt`. Eg.

#%  gisprompt: new,cell,raster

but is added automatically e.g. for G_OPT_R_OUTPUT.

> I added "#% overwrite: yes" by itself,
>
> as...
>
> #%option
> #% overwrite: yes
> #%end

wrong, see my previous answer (just read it carefully)

#%module
...
#% overwrite: yes
#%end

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa


More information about the grass-dev mailing list