[GRASS-SVN] r39578 - grass/trunk/vector/v.build

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 19 03:49:45 EDT 2009


Author: martinl
Date: 2009-10-19 03:49:42 -0400 (Mon, 19 Oct 2009)
New Revision: 39578

Modified:
   grass/trunk/vector/v.build/main.c
Log:
v.build: open vector map in update


Modified: grass/trunk/vector/v.build/main.c
===================================================================
--- grass/trunk/vector/v.build/main.c	2009-10-19 07:38:48 UTC (rev 39577)
+++ grass/trunk/vector/v.build/main.c	2009-10-19 07:49:42 UTC (rev 39578)
@@ -81,8 +81,10 @@
     /* build topology */
     if (build) {
 	Vect_set_open_level(1);
-	Vect_open_old(&Map, map_opt->answer, G_mapset());
-
+	if (Vect_open_update(&Map, map_opt->answer, G_mapset()) < 0) {
+	    G_fatal_error(_("Unable to build topology for <%s>"), map_opt->answer);
+	    exit(EXIT_FAILURE);
+	}
 	Vect_build(&Map);
     }
     /* dump topology */



More information about the grass-commit mailing list