[GRASS-SVN] r36669 - grass/trunk/vector/v.out.ogr
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 10 08:13:05 EDT 2009
Author: neteler
Date: 2009-04-10 08:13:05 -0400 (Fri, 10 Apr 2009)
New Revision: 36669
Modified:
grass/trunk/vector/v.out.ogr/main.c
Log:
warn if islands are found and -c missing
Modified: grass/trunk/vector/v.out.ogr/main.c
===================================================================
--- grass/trunk/vector/v.out.ogr/main.c 2009-04-10 08:06:21 UTC (rev 36668)
+++ grass/trunk/vector/v.out.ogr/main.c 2009-04-10 12:13:05 UTC (rev 36669)
@@ -209,6 +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"));
+
/* fetch PROJ info */
G_get_default_window(&cellhd);
if (cellhd.proj == PROJECTION_XY)
More information about the grass-commit
mailing list