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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 6 08:38:23 PDT 2012


Author: martinl
Date: 2012-06-06 08:38:22 -0700 (Wed, 06 Jun 2012)
New Revision: 51989

Modified:
   grass/trunk/vector/v.build/main.c
Log:
v.build: allow to dump topo/sidx/cidx/fidx also for vector maps from other mapsets


Modified: grass/trunk/vector/v.build/main.c
===================================================================
--- grass/trunk/vector/v.build/main.c	2012-06-06 15:05:02 UTC (rev 51988)
+++ grass/trunk/vector/v.build/main.c	2012-06-06 15:38:22 UTC (rev 51989)
@@ -7,12 +7,11 @@
  *               
  * PURPOSE:      Build topology
  *               
- * COPYRIGHT:    (C) 2001 by the GRASS Development Team
+ * COPYRIGHT:    (C) 2001, 2012 by the GRASS Development Team
  *
- *               This program is free software under the 
- *               GNU General Public License (>=v2). 
- *               Read the file COPYING that comes with GRASS
- *               for details.
+ *               This program is free software under the GNU General
+ *               Public License (>=v2).  Read the file COPYING that
+ *               comes with GRASS for details.
  *
  **************************************************************/
 
@@ -114,17 +113,15 @@
 	    }
 	}
 	Vect_set_open_level(1);
-	if (Vect_open_old(&Map, map_opt->answer, G_mapset()) < 0) {
-	    G_fatal_error(_("Unable to build topology for <%s>"),
-			  map_opt->answer);
-	}
+	Vect_open_old(&Map, map_opt->answer, G_mapset());
+        
 	Vect_build(&Map);
     }
     /* dump topology */
     if (dump || sdump || cdump || fdump) {
 	if (!build) {
 	    Vect_set_open_level(2);
-	    Vect_open_old(&Map, map_opt->answer, G_mapset());
+	    Vect_open_old(&Map, map_opt->answer, "");
 	}
 	if (dump)
 	    Vect_topo_dump(&Map, stdout);



More information about the grass-commit mailing list