[GRASS-SVN] r39553 - grass/trunk/vector/v.out.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 17 16:14:33 EDT 2009


Author: martinl
Date: 2009-10-17 16:14:31 -0400 (Sat, 17 Oct 2009)
New Revision: 39553

Modified:
   grass/trunk/vector/v.out.ogr/main.c
Log:
v.out.ogr: fix to export areas


Modified: grass/trunk/vector/v.out.ogr/main.c
===================================================================
--- grass/trunk/vector/v.out.ogr/main.c	2009-10-17 17:32:25 UTC (rev 39552)
+++ grass/trunk/vector/v.out.ogr/main.c	2009-10-17 20:14:31 UTC (rev 39553)
@@ -614,7 +614,7 @@
     }
 
     /* Areas (run always to count features of different type) */
-    if (Vect_get_num_primitives(&In, GV_AREA) > 0 && otype & GV_AREA) {
+    if (Vect_get_num_areas(&In) > 0 && otype & GV_AREA) {
 	G_message(_("Exporting %i areas (may take some time)..."),
 		  Vect_get_num_areas(&In));
 	for (i = 1; i <= Vect_get_num_areas(&In); i++) {



More information about the grass-commit mailing list