浏览代码

v.proj: add no topology flag

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69960 15284696-431f-4ddb-bdfa-cd5b030d7da7
Moritz Lennert 8 年之前
父节点
当前提交
dd2d024ff9
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      vector/v.proj/main.c

+ 8 - 1
vector/v.proj/main.c

@@ -59,6 +59,7 @@ int main(int argc, char *argv[])
 	struct Flag *list;	/* list files in source location */
 	struct Flag *list;	/* list files in source location */
 	struct Flag *transformz;	/* treat z as ellipsoidal height */
 	struct Flag *transformz;	/* treat z as ellipsoidal height */
 	struct Flag *wrap;		/* latlon output: wrap to 0,360 */
 	struct Flag *wrap;		/* latlon output: wrap to 0,360 */
+	struct Flag *no_topol;		/* do not build topology */
     } flag;
     } flag;
 
 
     G_gisinit(argv[0]);
     G_gisinit(argv[0]);
@@ -124,6 +125,11 @@ int main(int argc, char *argv[])
 	_("Disable wrapping to -180,180 for latlon output");
 	_("Disable wrapping to -180,180 for latlon output");
     flag.transformz->guisection = _("Target");
     flag.transformz->guisection = _("Target");
 
 
+    flag.no_topol = G_define_flag();
+    flag.no_topol->key = 'b';
+    flag.no_topol->label = _("Do not build vector topology");
+    flag.no_topol->description = _("Recommended for massive point conversion");
+
     /* The parser checks if the map already exists in current mapset,
     /* The parser checks if the map already exists in current mapset,
        we switch out the check and do it
        we switch out the check and do it
        in the module after the parser */
        in the module after the parser */
@@ -498,7 +504,8 @@ int main(int argc, char *argv[])
 
 
     Vect_close(&Map);
     Vect_close(&Map);
 
 
-    Vect_build(&Out_Map);
+    if (!flag.no_topol->answer)
+        Vect_build(&Out_Map);
     Vect_close(&Out_Map);
     Vect_close(&Out_Map);
 
 
     if (recommend_nowrap)
     if (recommend_nowrap)