[GRASS-SVN] r48887 - grass/trunk/vector/v.out.ascii

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 20 17:33:32 EDT 2011


Author: martinl
Date: 2011-10-20 14:33:32 -0700 (Thu, 20 Oct 2011)
New Revision: 48887

Modified:
   grass/trunk/vector/v.out.ascii/main.c
Log:
v.out.ascii: #1470 (v.out.ascii with sql where option exports only centroids and not areas)


Modified: grass/trunk/vector/v.out.ascii/main.c
===================================================================
--- grass/trunk/vector/v.out.ascii/main.c	2011-10-20 21:32:52 UTC (rev 48886)
+++ grass/trunk/vector/v.out.ascii/main.c	2011-10-20 21:33:32 UTC (rev 48887)
@@ -69,18 +69,10 @@
 	G_fatal_error(_("'output' must be given for old version"));
     }
 
-    if (format != GV_ASCII_FORMAT_WKT) {
-	Vect_set_open_level(1);	/* topology not needed */
-	if (Vect_open_old2(&Map, input, "", field_name) < 0)
-	    G_fatal_error(_("Unable to open vector map <%s>"),
-			  input);
-    }
-    else {
-	if (Vect_open_old2(&Map, input, "", field_name) < 2) /* topology required for polygons */
-	    G_warning(_("Unable to open vector map <%s> at topology level. "
-			"Only points, lines can be processed."),
-		      input);
-    }
+    if (Vect_open_old2(&Map, input, "", field_name) < 2) /* topology required for areas */
+	G_warning(_("Unable to open vector map <%s> at topology level. "
+		    "Areas will not be processed."),
+		  input);
     
     field = Vect_get_field_number(&Map, field_name);
     



More information about the grass-commit mailing list