浏览代码

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 年之前
父节点
当前提交
ab69af09c5
共有 2 个文件被更改,包括 8 次插入2 次删除
  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_DB_TABLE,		/* do not create table */
+    G_FLG_V_TOPO,               /* do not build topology */
 } STD_FLG;
 
 /* 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
   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
   
@@ -798,7 +799,11 @@ struct Flag *G_define_standard_flag(int flag)
 	Flg->key = 't';
 	Flg->description = _("Do not create attribute table");
 	break;
+    case G_FLG_V_TOPO:
+	Flg->key = 'b';
+	Flg->description = _("Do not build topology");
+	break;
     }
-
+    
     return Flg;
 }