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

Sören Gebbert soerengebbert at googlemail.com
Mon Aug 12 06:48:02 PDT 2013


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 at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list