[GRASS-SVN] r70326 - grass/branches/releasebranch_7_2/vector/v.proj
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 9 07:53:30 PST 2017
Author: mlennert
Date: 2017-01-09 07:53:30 -0800 (Mon, 09 Jan 2017)
New Revision: 70326
Modified:
grass/branches/releasebranch_7_2/vector/v.proj/main.c
Log:
v.proj: add no topology flag (backport from trunk r69960)
Modified: grass/branches/releasebranch_7_2/vector/v.proj/main.c
===================================================================
--- grass/branches/releasebranch_7_2/vector/v.proj/main.c 2017-01-09 14:46:46 UTC (rev 70325)
+++ grass/branches/releasebranch_7_2/vector/v.proj/main.c 2017-01-09 15:53:30 UTC (rev 70326)
@@ -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