[GRASS-SVN] r36671 -
	grass/branches/releasebranch_6_4/vector/v.out.ogr
    svn_grass at osgeo.org 
    svn_grass at osgeo.org
       
    Fri Apr 10 08:15:30 EDT 2009
    
    
  
Author: neteler
Date: 2009-04-10 08:15:30 -0400 (Fri, 10 Apr 2009)
New Revision: 36671
Modified:
   grass/branches/releasebranch_6_4/vector/v.out.ogr/main.c
Log:
warn if islands are found and -c missing
Modified: grass/branches/releasebranch_6_4/vector/v.out.ogr/main.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.out.ogr/main.c	2009-04-10 12:15:22 UTC (rev 36670)
+++ grass/branches/releasebranch_6_4/vector/v.out.ogr/main.c	2009-04-10 12:15:30 UTC (rev 36671)
@@ -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