[GRASS-SVN] r69960 - grass/trunk/vector/v.proj

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Dec 1 02:16:37 PST 2016


Author: mlennert
Date: 2016-12-01 02:16:36 -0800 (Thu, 01 Dec 2016)
New Revision: 69960

Modified:
   grass/trunk/vector/v.proj/main.c
Log:
v.proj: add no topology flag


Modified: grass/trunk/vector/v.proj/main.c
===================================================================
--- grass/trunk/vector/v.proj/main.c	2016-12-01 08:07:42 UTC (rev 69959)
+++ grass/trunk/vector/v.proj/main.c	2016-12-01 10:16:36 UTC (rev 69960)
@@ -59,6 +59,7 @@
 	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 @@
 	_("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 @@
 
     Vect_close(&Map);
 
-    Vect_build(&Out_Map);
+    if (!flag.no_topol->answer)
+        Vect_build(&Out_Map);
     Vect_close(&Out_Map);
 
     if (recommend_nowrap)



More information about the grass-commit mailing list