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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 14 04:11:51 EDT 2009


Author: mmetz
Date: 2009-04-14 04:11:50 -0400 (Tue, 14 Apr 2009)
New Revision: 36726

Modified:
   grass/trunk/vector/v.out.ogr/main.c
   grass/trunk/vector/v.out.ogr/v.out.ogr.html
Log:
reversed -c flag, manual updated

Modified: grass/trunk/vector/v.out.ogr/main.c
===================================================================
--- grass/trunk/vector/v.out.ogr/main.c	2009-04-14 00:10:50 UTC (rev 36725)
+++ grass/trunk/vector/v.out.ogr/main.c	2009-04-14 08:11:50 UTC (rev 36726)
@@ -148,8 +148,8 @@
 
     cat_flag = G_define_flag();
     cat_flag->key = 'c';
-    cat_flag->description = _("Export features with category (labeled) only. "
-			      "Otherwise all features are exported");
+    cat_flag->description = _("Also export features without category (not labeled). "
+			      "Otherwise only features with category are exported");
 
     esristyle = G_define_flag();
     esristyle->key = 'e';
@@ -198,9 +198,9 @@
 
 
     if (cat_flag->answer)
+	donocat = 1;
+    else
 	donocat = 0;
-    else
-	donocat = 1;
 
     Points = Vect_new_line_struct();
     Cats = Vect_new_cats_struct();
@@ -209,8 +209,9 @@
     Vect_set_open_level(2);
     Vect_open_old(&In, in_opt->answer, "");
 
-    if (Vect_get_num_islands(&In) > 0 && !cat_flag->answer)
-	G_warning(_("The map contains islands. To preserve them in the output map, use the -c flag"));
+    if ((GV_AREA & otype) && Vect_get_num_islands(&In) > 0 && cat_flag->answer)
+	G_warning(_("The map contains islands. With the -c flag, "
+	            "islands will appear as filled areas, not holes in the output map."));
 
     /* fetch PROJ info */
     G_get_default_window(&cellhd);
@@ -642,7 +643,7 @@
     if (noatt > 0)
 	G_warning(_("%d features without attributes were written"), noatt);
     if (nocatskip > 0)
-	G_warning(_("%d features found without category were skipped"),
+	G_message(_("%d features found without category were skipped"),
 		nocatskip);
 
     /* Enable this? May be confusing that for area type are not reported

Modified: grass/trunk/vector/v.out.ogr/v.out.ogr.html
===================================================================
--- grass/trunk/vector/v.out.ogr/v.out.ogr.html	2009-04-14 00:10:50 UTC (rev 36725)
+++ grass/trunk/vector/v.out.ogr/v.out.ogr.html	2009-04-14 08:11:50 UTC (rev 36726)
@@ -23,10 +23,10 @@
 
 <h2>NOTES</h2>
 
-To export areas with holes into, e.g., a Shapefile, while keeping the 
-holes as holes, the flag <em>-c</em> has to be used.
+By default, islands will appear as holes inside surrounding areas.
+To export areas with holes into, e.g., a Shapefile, and make the 
+holes appear as filled areas, the flag <em>-c</em> has to be used.
 
-
 <h2>EXAMPLES</h2>
 
 <h3>Export to Shapefile</h3>
@@ -37,8 +37,8 @@
 v.out.ogr input=multi type=line dsn=/tmp olayer=testogr 
 </pre></div>
 
-Export areas from GRASS vector map to Shapefile format, preserving islands
- (generates /tmp/testogr.shp and related files):
+Export areas from GRASS vector map to Shapefile format, converting
+islands (holes) to filled areas (generates /tmp/testogr.shp and related files):
 <div class="code"><pre>
 v.out.ogr -c input=multi type=area dsn=/tmp olayer=testogr 
 </pre></div>



More information about the grass-commit mailing list