Преглед на файлове

use G_FLG_V_TOPO (do not build topology)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51176 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa преди 13 години
родител
ревизия
25b63e75a6
променени са 9 файла, в които са добавени 9 реда и са изтрити 27 реда
  1. 1 2
      raster/r.random/main.c
  2. 1 3
      vector/v.edit/args.c
  3. 1 2
      vector/v.in.ascii/main.c
  4. 1 3
      vector/v.in.dxf/main.c
  5. 1 3
      vector/v.in.lidar/main.c
  6. 1 4
      vector/v.patch/main.c
  7. 1 4
      vector/v.perturb/main.c
  8. 1 3
      vector/v.random/main.c
  9. 1 3
      vector/v.rectify/main.c

+ 1 - 2
raster/r.random/main.c

@@ -91,8 +91,7 @@ int main(int argc, char *argv[])
     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");
 

+ 1 - 3
vector/v.edit/args.c

@@ -198,9 +198,7 @@ int parser(int argc, char *argv[], struct GParams *params,
     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';

+ 1 - 2
vector/v.in.ascii/main.c

@@ -155,8 +155,7 @@ int main(int argc, char *argv[])
     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");
 

+ 1 - 3
vector/v.in.dxf/main.c

@@ -75,9 +75,7 @@ int main(int argc, char *argv[])
     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';

+ 1 - 3
vector/v.in.lidar/main.c

@@ -219,9 +219,7 @@ int main(int argc, char *argv[])
           " 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

+ 1 - 4
vector/v.patch/main.c

@@ -91,10 +91,7 @@ int main(int argc, char *argv[])
     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);

+ 1 - 4
vector/v.perturb/main.c

@@ -104,10 +104,7 @@ int main(int argc, char **argv)
     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);

+ 1 - 3
vector/v.random/main.c

@@ -145,9 +145,7 @@ int main(int argc, char *argv[])
     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);

+ 1 - 3
vector/v.rectify/main.c

@@ -102,9 +102,7 @@ int main(int argc, char *argv[])
     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);