[GRASS-SVN] r36670 - grass/branches/develbranch_6/vector/v.out.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 10 08:15:22 EDT 2009


Author: neteler
Date: 2009-04-10 08:15:22 -0400 (Fri, 10 Apr 2009)
New Revision: 36670

Modified:
   grass/branches/develbranch_6/vector/v.out.ogr/main.c
Log:
warn if islands are found and -c missing

Modified: grass/branches/develbranch_6/vector/v.out.ogr/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.out.ogr/main.c	2009-04-10 12:13:05 UTC (rev 36669)
+++ grass/branches/develbranch_6/vector/v.out.ogr/main.c	2009-04-10 12:15:22 UTC (rev 36670)
@@ -214,6 +214,9 @@
     Vect_set_open_level(2);
     Vect_open_old(&In, in_opt->answer, mapset);
 
+    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"));
+
     /* fetch PROJ info */
     G_get_default_window(&cellhd);
     if (cellhd.proj == PROJECTION_XY)



More information about the grass-commit mailing list