[GRASS-SVN] r44074 - grass/trunk/vector/v.to.rast
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 28 13:14:13 EDT 2010
Author: martinl
Date: 2010-10-28 10:14:13 -0700 (Thu, 28 Oct 2010)
New Revision: 44074
Modified:
grass/trunk/vector/v.to.rast/main.c
Log:
v.to.rast: guisections clean up
(merge r44072 from devbr6)
Modified: grass/trunk/vector/v.to.rast/main.c
===================================================================
--- grass/trunk/vector/v.to.rast/main.c 2010-10-28 17:10:00 UTC (rev 44073)
+++ grass/trunk/vector/v.to.rast/main.c 2010-10-28 17:14:13 UTC (rev 44074)
@@ -41,7 +41,7 @@
G_add_keyword(_("raster"));
G_add_keyword(_("conversion"));
G_add_keyword(_("rasterization"));
- module->description = _("Converts a vector map into a raster map.");
+ module->description = _("Converts (rasterize) a vector map into a raster map.");
input = G_define_standard_option(G_OPT_V_INPUT);
@@ -50,8 +50,10 @@
type_opt = G_define_standard_option(G_OPT_V_TYPE);
type_opt->options = "point,line,area";
type_opt->answer = "point,line,area";
-
+ type_opt->guisection = _("Selection");
+
output = G_define_standard_option(G_OPT_R_OUTPUT);
+
use_opt = G_define_option();
use_opt->key = "use";
use_opt->type = TYPE_STRING;
@@ -68,17 +70,9 @@
col = G_define_standard_option(G_OPT_DB_COLUMN);
col->key = "attrcolumn";
col->description =
- _("Name of column for attr parameter (data type must be numeric)");
+ _("Name of column for 'attr' parameter (data type must be numeric)");
col->guisection = _("Attributes");
- val_opt = G_define_option();
- val_opt->key = "value";
- val_opt->type = TYPE_DOUBLE;
- val_opt->required = NO;
- val_opt->multiple = NO;
- val_opt->answer = "1";
- val_opt->description = _("Raster value");
-
rgbcol_opt = G_define_standard_option(G_OPT_DB_COLUMN);
rgbcol_opt->key = "rgbcolumn";
rgbcol_opt->description =
@@ -90,6 +84,14 @@
label_opt->description =
_("Name of column used as raster category labels");
label_opt->guisection = _("Attributes");
+
+ val_opt = G_define_option();
+ val_opt->key = "value";
+ val_opt->type = TYPE_DOUBLE;
+ val_opt->required = NO;
+ val_opt->multiple = NO;
+ val_opt->answer = "1";
+ val_opt->description = _("Raster value (for use=val)");
rows = G_define_option();
rows->key = "rows";
More information about the grass-commit
mailing list