Browse Source

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 years ago
parent
commit
dd2d024ff9
1 changed files with 8 additions and 1 deletions
  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 *transformz;	/* treat z as ellipsoidal height */
 	struct Flag *wrap;		/* latlon output: wrap to 0,360 */
+	struct Flag *no_topol;		/* do not build topology */
     } flag;
 
     G_gisinit(argv[0]);
@@ -124,6 +125,11 @@ int main(int argc, char *argv[])
 	_("Disable wrapping to -180,180 for latlon output");
     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,
        we switch out the check and do it
        in the module after the parser */
@@ -498,7 +504,8 @@ int main(int argc, char *argv[])
 
     Vect_close(&Map);
 
-    Vect_build(&Out_Map);
+    if (!flag.no_topol->answer)
+        Vect_build(&Out_Map);
     Vect_close(&Out_Map);
 
     if (recommend_nowrap)