[GRASS-SVN] r54534 - in grass/trunk/raster: r.cost r.walk

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 5 06:19:17 PST 2013


Author: martinl
Date: 2013-01-05 06:19:16 -0800 (Sat, 05 Jan 2013)
New Revision: 54534

Modified:
   grass/trunk/raster/r.cost/main.c
   grass/trunk/raster/r.walk/main.c
Log:
r.walk/r.cost: more guisections


Modified: grass/trunk/raster/r.cost/main.c
===================================================================
--- grass/trunk/raster/r.cost/main.c	2013-01-05 14:04:55 UTC (rev 54533)
+++ grass/trunk/raster/r.cost/main.c	2013-01-05 14:19:16 UTC (rev 54534)
@@ -155,12 +155,14 @@
     opt12->required = NO;
     opt12->description =
 	_("Name for output raster map with nearest start point");
+    opt12->guisection = _("Optional outputs");
 
     opt11 = G_define_standard_option(G_OPT_R_OUTPUT);
     opt11->key = "outdir";
     opt11->required = NO;
     opt11->description =
 	_("Name for output raster map to contain movement directions");
+    opt11->guisection = _("Optional outputs");
 
     opt7 = G_define_standard_option(G_OPT_V_INPUT);
     opt7->key = "start_points";
@@ -197,28 +199,30 @@
     opt5 = G_define_option();
     opt5->key = "max_cost";
     opt5->type = TYPE_INTEGER;
-    opt5->key_desc = "cost";
+    opt5->key_desc = "value";
     opt5->required = NO;
     opt5->multiple = NO;
     opt5->answer = "0";
-    opt5->description = _("Optional maximum cumulative cost");
+    opt5->description = _("Maximum cumulative cost");
 
     opt6 = G_define_option();
     opt6->key = "null_cost";
     opt6->type = TYPE_DOUBLE;
-    opt6->key_desc = "null cost";
+    opt6->key_desc = "value";
     opt6->required = NO;
     opt6->multiple = NO;
     opt6->description =
 	_("Cost assigned to null cells. By default, null cells are excluded");
+    opt6->guisection = _("NULL cells");
 
     opt10 = G_define_option();
     opt10->key = "percent_memory";
     opt10->type = TYPE_INTEGER;
-    opt10->key_desc = "percent memory";
+    opt10->key_desc = "value";
     opt10->required = NO;
     opt10->multiple = NO;
     opt10->answer = "40";
+    opt10->options = "0-100";
     opt10->description = _("Percent of map to keep in memory");
 
     flag2 = G_define_flag();
@@ -229,6 +233,7 @@
     flag3 = G_define_flag();
     flag3->key = 'n';
     flag3->description = _("Keep null values in output raster map");
+    flag3->guisection = _("NULL cells");
 
     flag4 = G_define_flag();
     flag4->key = 'r';

Modified: grass/trunk/raster/r.walk/main.c
===================================================================
--- grass/trunk/raster/r.walk/main.c	2013-01-05 14:04:55 UTC (rev 54533)
+++ grass/trunk/raster/r.walk/main.c	2013-01-05 14:19:16 UTC (rev 54534)
@@ -203,6 +203,7 @@
     opt11->required = NO;
     opt11->description =
 	_("Name for output raster map to contain movement directions");
+    opt11->guisection = _("Optional outputs");
 
     opt7 = G_define_standard_option(G_OPT_V_INPUT);
     opt7->key = "start_points";
@@ -251,13 +252,15 @@
     opt6->multiple = NO;
     opt6->description =
 	_("Cost assigned to null cells. By default, null cells are excluded");
-
+    opt6->guisection = _("NULL cells");
+    
     opt10 = G_define_option();
     opt10->key = "percent_memory";
     opt10->type = TYPE_INTEGER;
     opt10->required = NO;
     opt10->multiple = NO;
     opt10->answer = "100";
+    opt10->options = "0-100";
     opt10->description = _("Percent of map to keep in memory");
 
     opt15 = G_define_option();
@@ -269,6 +272,7 @@
     opt15->answer = "0.72,6.0,1.9998,-1.9998";
     opt15->description =
 	_("Coefficients for walking energy formula parameters a,b,c,d");
+    opt15->guisection = _("Settings");
 
     opt14 = G_define_option();
     opt14->key = "lambda";
@@ -278,6 +282,7 @@
     opt14->answer = "1.0";
     opt14->description =
 	_("Lambda coefficients for combining walking energy and friction cost");
+    opt14->guisection = _("Settings");
 
     opt13 = G_define_option();
     opt13->key = "slope_factor";
@@ -287,6 +292,7 @@
     opt13->answer = "-0.2125";
     opt13->description =
 	_("Slope factor determines travel energy cost per height step");
+    opt13->guisection = _("Settings");
 
     flag2 = G_define_flag();
     flag2->key = 'k';
@@ -296,11 +302,13 @@
     flag3 = G_define_flag();
     flag3->key = 'n';
     flag3->description = _("Keep null values in output map");
+    flag3->guisection = _("NULL cells");
 
     flag4 = G_define_flag();
     flag4->key = 'r';
     flag4->description = _("Start with values in raster map");
-
+    flag4->guisection = _("Start");
+ 
     flag5 = G_define_flag();
     flag5->key = 'i';
     flag5->description = _("Only print info about disk space and memory requirements");



More information about the grass-commit mailing list