[GRASS-SVN] r51176 - in grass/trunk: raster/r.random vector/v.edit
vector/v.in.ascii vector/v.in.dxf vector/v.in.lidar
vector/v.patch vector/v.perturb vector/v.random vector/v.rectify
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Mar 28 09:59:36 EDT 2012
Author: martinl
Date: 2012-03-28 06:59:36 -0700 (Wed, 28 Mar 2012)
New Revision: 51176
Modified:
grass/trunk/raster/r.random/main.c
grass/trunk/vector/v.edit/args.c
grass/trunk/vector/v.in.ascii/main.c
grass/trunk/vector/v.in.dxf/main.c
grass/trunk/vector/v.in.lidar/main.c
grass/trunk/vector/v.patch/main.c
grass/trunk/vector/v.perturb/main.c
grass/trunk/vector/v.random/main.c
grass/trunk/vector/v.rectify/main.c
Log:
use G_FLG_V_TOPO (do not build topology)
Modified: grass/trunk/raster/r.random/main.c
===================================================================
--- grass/trunk/raster/r.random/main.c 2012-03-28 13:51:46 UTC (rev 51175)
+++ grass/trunk/raster/r.random/main.c 2012-03-28 13:59:36 UTC (rev 51176)
@@ -91,8 +91,7 @@
flag.z_geometry->key = 'd';
flag.z_geometry->description = _("Generate vector points as 3D points");
- flag.notopol_flag = G_define_flag();
- flag.notopol_flag->key = 'b';
+ flag.notopol_flag = G_define_standard_flag(G_FLG_V_TOPO);
flag.notopol_flag->description = _("Do not build topology in points mode");
flag.notopol_flag->guisection = _("Points");
Modified: grass/trunk/vector/v.edit/args.c
===================================================================
--- grass/trunk/vector/v.edit/args.c 2012-03-28 13:51:46 UTC (rev 51175)
+++ grass/trunk/vector/v.edit/args.c 2012-03-28 13:59:36 UTC (rev 51176)
@@ -198,9 +198,7 @@
params->header->description = _("Do not expect header of input data");
params->header->guisection = _("Input");
- params->topo = G_define_flag();
- params->topo->key = 'b';
- params->topo->description = _("Do not build topology");
+ params->topo = G_define_standard_flag(G_FLG_V_TOPO);
params->move_first = G_define_flag();
params->move_first->key = '1';
Modified: grass/trunk/vector/v.in.ascii/main.c
===================================================================
--- grass/trunk/vector/v.in.ascii/main.c 2012-03-28 13:51:46 UTC (rev 51175)
+++ grass/trunk/vector/v.in.ascii/main.c 2012-03-28 13:59:36 UTC (rev 51176)
@@ -155,8 +155,7 @@
t_flag->description = _("Do not create table in points mode");
t_flag->guisection = _("Points");
- notopol_flag = G_define_flag();
- notopol_flag->key = 'b';
+ notopol_flag = G_define_standard_flag(G_FLG_V_TOPO);
notopol_flag->description = _("Do not build topology in points mode");
notopol_flag->guisection = _("Points");
Modified: grass/trunk/vector/v.in.dxf/main.c
===================================================================
--- grass/trunk/vector/v.in.dxf/main.c 2012-03-28 13:51:46 UTC (rev 51175)
+++ grass/trunk/vector/v.in.dxf/main.c 2012-03-28 13:59:36 UTC (rev 51176)
@@ -75,9 +75,7 @@
flag.table->key = 't';
flag.table->description = _("Do not create attribute tables");
- flag.topo = G_define_flag();
- flag.topo->key = 'b';
- flag.topo->description = _("Do not build topology");
+ flag.topo = G_define_standard_flag(G_FLG_V_TOPO);
flag.frame = G_define_flag();
flag.frame->key = 'f';
Modified: grass/trunk/vector/v.in.lidar/main.c
===================================================================
--- grass/trunk/vector/v.in.lidar/main.c 2012-03-28 13:51:46 UTC (rev 51175)
+++ grass/trunk/vector/v.in.lidar/main.c 2012-03-28 13:59:36 UTC (rev 51176)
@@ -219,9 +219,7 @@
" Do not import the vector file.");
no_import_flag->suppress_required = YES;
- notopo_flag = G_define_flag();
- notopo_flag->key = 'b';
- notopo_flag->description = _("Do not build topology");
+ notopo_flag = G_define_standard_flag(G_FLG_V_TOPO);
/* The parser checks if the map already exists in current mapset, this is
* wrong if location options is used, so we switch out the check and do it
Modified: grass/trunk/vector/v.patch/main.c
===================================================================
--- grass/trunk/vector/v.patch/main.c 2012-03-28 13:51:46 UTC (rev 51175)
+++ grass/trunk/vector/v.patch/main.c 2012-03-28 13:59:36 UTC (rev 51176)
@@ -91,10 +91,7 @@
table_flag->description =
_("Only the table of layer 1 is currently supported");
- no_topo = G_define_flag();
- no_topo->key = 'b';
- no_topo->description =
- _("Do not build topology for output vector");
+ no_topo = G_define_standard_flag(G_FLG_V_TOPO);
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
Modified: grass/trunk/vector/v.perturb/main.c
===================================================================
--- grass/trunk/vector/v.perturb/main.c 2012-03-28 13:51:46 UTC (rev 51175)
+++ grass/trunk/vector/v.perturb/main.c 2012-03-28 13:59:36 UTC (rev 51176)
@@ -104,10 +104,7 @@
parm.seed->answer = "0";
parm.seed->description = _("Seed for random number generation");
- parm.no_topo = G_define_flag();
- parm.no_topo->key = 'b';
- parm.no_topo->description =
- _("Do not build topology for output vector");
+ parm.no_topo = G_define_standard_flag(G_FLG_V_TOPO);
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
Modified: grass/trunk/vector/v.random/main.c
===================================================================
--- grass/trunk/vector/v.random/main.c 2012-03-28 13:51:46 UTC (rev 51175)
+++ grass/trunk/vector/v.random/main.c 2012-03-28 13:59:36 UTC (rev 51176)
@@ -145,9 +145,7 @@
flag.drand48->key = 'd';
flag.drand48->description = _("Use drand48() function instead of rand()");
- flag.notopo = G_define_flag();
- flag.notopo->key = 'b';
- flag.notopo->description = _("Do not build topology");
+ flag.notopo = G_define_standard_flag(G_FLG_V_TOPO);
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
Modified: grass/trunk/vector/v.rectify/main.c
===================================================================
--- grass/trunk/vector/v.rectify/main.c 2012-03-28 13:51:46 UTC (rev 51175)
+++ grass/trunk/vector/v.rectify/main.c 2012-03-28 13:59:36 UTC (rev 51176)
@@ -102,9 +102,7 @@
print_rms->label = _("Print RMS errors");
print_rms->description = _("Print RMS errors and exit without rectifying the input map");
- no_topo = G_define_flag();
- no_topo->key = 'b';
- no_topo->description = _("Do not build topology for output");
+ no_topo = G_define_standard_flag(G_FLG_V_TOPO);
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
More information about the grass-commit
mailing list