[GRASS-SVN] r57832 - in grass/trunk/vector: . v.clean

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 25 01:26:27 PDT 2013


Author: mmetz
Date: 2013-09-25 01:26:27 -0700 (Wed, 25 Sep 2013)
New Revision: 57832

Modified:
   grass/trunk/vector/Makefile
   grass/trunk/vector/v.clean/main.c
Log:
v.centerpoint: geometric mean -> arithmetic mean

Modified: grass/trunk/vector/Makefile
===================================================================
--- grass/trunk/vector/Makefile	2013-09-25 04:01:01 UTC (rev 57831)
+++ grass/trunk/vector/Makefile	2013-09-25 08:26:27 UTC (rev 57832)
@@ -27,6 +27,7 @@
 	v.in.ascii \
 	v.in.db \
 	v.in.dxf \
+	v.in.ply \
 	v.in.region \
 	v.in.sites \
 	v.kcv \
@@ -58,6 +59,7 @@
 	v.normal \
 	v.out.ascii \
 	v.out.dxf \
+	v.out.ply \
 	v.out.postgis \
 	v.out.pov \
 	v.out.svg \

Modified: grass/trunk/vector/v.clean/main.c
===================================================================
--- grass/trunk/vector/v.clean/main.c	2013-09-25 04:01:01 UTC (rev 57831)
+++ grass/trunk/vector/v.clean/main.c	2013-09-25 08:26:27 UTC (rev 57832)
@@ -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