[GRASS-dev] Missing "overwrite" flag for r.texture

Devs,

is there a reason for r.texture missing the overwrite flag? In G7,

,—>%–

Flags:

-s Separate output for each angle (0, 45, 90, 135)

-a Calculate all textural measurements

–v Verbose module output

–q Quiet module output

`–%<—

Nikos

Yes, the output is not defined as raster map.
This should add the --o option (untested).

{{{
Index: main.c

--- main.c (Revision 57260)
+++ main.c (Arbeitskopie)
@@ -109,10 +109,9 @@

     opt_input = G_define_standard_option(G_OPT_R_INPUT);

- opt_output = G_define_option();
+ opt_output = G_define_standard_option(G_OPT_R_OUTPUT);
     opt_output->key = "prefix";
- opt_output->type = TYPE_STRING;
- opt_output->required = YES;
+ opt_output->multiple = YES;
     opt_output->description = _("Prefix for output raster map(s)");

     opt_size = G_define_option();
}}}

Be aware that the test to overwrite an existing map works only for the
base map name, not for output maps that are build from the base map
name and an increment.

Best regards
Soeren

2013/8/12 Nikos Alexandris <nik@nikosalexandris.net>:

Devs,

is there a reason for r.texture missing the overwrite flag? In G7,

,--->%--

Flags:

-s Separate output for each angle (0, 45, 90, 135)

-a Calculate all textural measurements

--v Verbose module output

--q Quiet module output

`--%<---

Nikos

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On 12 August 2013 09:48, Sören Gebbert <soerengebbert@googlemail.com> wrote:

Be aware that the test to overwrite an existing map works only for the
base map name, not for output maps that are build from the base map
name and an increment.

These multiple output maps are general problem for grass. Some modules have
this prefix (or better say basename) option and some other have it in some
undefined state such as r.in.gdal can output multiple maps if the input is
multiple bands. This is the problem in the GUI since we don't know which
map(s) should we add (if Add maps to layer list is checked). Some solution
is needed...