Parcourir la source

v.out.ascii: https://trac.osgeo.org/grass/ticket/1470 (v.out.ascii with sql where option exports only centroids and not areas)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48887 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa il y a 13 ans
Parent
commit
f7ddb1f7b2
1 fichiers modifiés avec 4 ajouts et 12 suppressions
  1. 4 12
      vector/v.out.ascii/main.c

+ 4 - 12
vector/v.out.ascii/main.c

@@ -69,18 +69,10 @@ int main(int argc, char *argv[])
 	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);