[GRASS-SVN] r64567 - grass/trunk/vector/v.generalize

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 11 12:09:44 PST 2015


Author: mmetz
Date: 2015-02-11 12:09:44 -0800 (Wed, 11 Feb 2015)
New Revision: 64567

Modified:
   grass/trunk/vector/v.generalize/main.c
   grass/trunk/vector/v.generalize/misc.c
Log:
v.generalize: fix type=area input

Modified: grass/trunk/vector/v.generalize/main.c
===================================================================
--- grass/trunk/vector/v.generalize/main.c	2015-02-11 16:59:50 UTC (rev 64566)
+++ grass/trunk/vector/v.generalize/main.c	2015-02-11 20:09:44 UTC (rev 64567)
@@ -396,9 +396,6 @@
 	Vect_copy_map_lines(&In, &Out);
 	Vect_build_partial(&Out, GV_BUILD_CENTROIDS);
 
-	if ((mask_type & GV_AREA) && !(mask_type & GV_BOUNDARY))
-	    mask_type |= GV_BOUNDARY;
-
 	G_message("-----------------------------------------------------");
 	G_message(_("Generalization (%s)..."), method_opt->answer);
 	G_message(_("Using threshold: %g %s"), thresh, G_database_unit_name(1));

Modified: grass/trunk/vector/v.generalize/misc.c
===================================================================
--- grass/trunk/vector/v.generalize/misc.c	2015-02-11 16:59:50 UTC (rev 64566)
+++ grass/trunk/vector/v.generalize/misc.c	2015-02-11 20:09:44 UTC (rev 64567)
@@ -48,7 +48,7 @@
 	    res |= GV_BOUNDARY;
 	    break;
 	case 'a':
-	    res |= GV_AREA;
+	    res |= GV_BOUNDARY;
 	}
 
     return res;



More information about the grass-commit mailing list