[GRASS-SVN] r57835 - grass/trunk/vector/v.clean
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 25 01:34:17 PDT 2013
Author: mmetz
Date: 2013-09-25 01:34:17 -0700 (Wed, 25 Sep 2013)
New Revision: 57835
Modified:
grass/trunk/vector/v.clean/main.c
Log:
v.clean: improve topo handling, warning for non-native formats
Modified: grass/trunk/vector/v.clean/main.c
===================================================================
--- grass/trunk/vector/v.clean/main.c 2013-09-25 08:32:44 UTC (rev 57834)
+++ grass/trunk/vector/v.clean/main.c 2013-09-25 08:34:17 UTC (rev 57835)
@@ -303,6 +303,9 @@
native = Vect_maptype(&Out) == GV_FORMAT_NATIVE;
if (!native) {
+ /* area cleaning tools might produce unexpected results for
+ * non-native vectors */
+ G_warning(_("Topological cleaning works best with native GRASS vector format"));
/* Copy attributes (OGR format) */
Vect_copy_map_dblinks(&In, &Out, TRUE);
}
@@ -428,6 +431,8 @@
count =
Vect_remove_small_areas(&Out, threshs[i], pErr, &size);
if (flag.combine->answer && count > 0) {
+ Vect_build_partial(&Out, GV_BUILD_BASE);
+ G_message(SEP);
G_message(_("Tool: Merge boundaries"));
Vect_merge_lines(&Out, GV_BOUNDARY, NULL, pErr);
}
More information about the grass-commit
mailing list