Bläddra i källkod

libgis: add G_FLG_V_TOPO

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51173 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 år sedan
förälder
incheckning
ab69af09c5
2 ändrade filer med 8 tillägg och 2 borttagningar
  1. 1 0
      include/gis.h
  2. 7 2
      lib/gis/parser_standard_options.c

+ 1 - 0
include/gis.h

@@ -257,6 +257,7 @@ static const char *GRASS_copyright __attribute__ ((unused))
 {
 {
     G_FLG_UNDEFINED,
     G_FLG_UNDEFINED,
     G_FLG_DB_TABLE,		/* do not create table */
     G_FLG_DB_TABLE,		/* do not create table */
+    G_FLG_V_TOPO,               /* do not build topology */
 } STD_FLG;
 } STD_FLG;
 
 
 /* Message format */
 /* Message format */

+ 7 - 2
lib/gis/parser_standard_options.c

@@ -781,7 +781,8 @@ struct Option *G_define_standard_option(int opt)
   If an invalid parameter was specified a empty Flag structure will be
   If an invalid parameter was specified a empty Flag structure will be
   returned (not NULL).
   returned (not NULL).
 
 
-  - G_FLG_DB_TABLE
+  - G_FLG_DB_TABLE (do not create attribute table)
+  - G_FLG_V_TOPO   (do not build topology)
 
 
   \param flag type of Flag struct to create
   \param flag type of Flag struct to create
   
   
@@ -798,7 +799,11 @@ struct Flag *G_define_standard_flag(int flag)
 	Flg->key = 't';
 	Flg->key = 't';
 	Flg->description = _("Do not create attribute table");
 	Flg->description = _("Do not create attribute table");
 	break;
 	break;
+    case G_FLG_V_TOPO:
+	Flg->key = 'b';
+	Flg->description = _("Do not build topology");
+	break;
     }
     }
-
+    
     return Flg;
     return Flg;
 }
 }