[GRASS-SVN] r53702 - grass/trunk/vector/v.overlay

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 6 05:56:25 PST 2012


Author: mmetz
Date: 2012-11-06 05:56:24 -0800 (Tue, 06 Nov 2012)
New Revision: 53702

Modified:
   grass/trunk/vector/v.overlay/area_area.c
   grass/trunk/vector/v.overlay/line_area.c
Log:
v.overlay add TODOs

Modified: grass/trunk/vector/v.overlay/area_area.c
===================================================================
--- grass/trunk/vector/v.overlay/area_area.c	2012-11-06 13:34:34 UTC (rev 53701)
+++ grass/trunk/vector/v.overlay/area_area.c	2012-11-06 13:56:24 UTC (rev 53702)
@@ -76,11 +76,14 @@
 	Vect_remove_bridges(Out, NULL, NULL, NULL);
     }
 
+    Vect_build_partial(Out, GV_BUILD_NONE);
+    Vect_build_partial(Out, GV_BUILD_BASE);
     G_message(_("Merging lines..."));
     Vect_merge_lines(Out, GV_BOUNDARY, NULL, NULL);
 
     /* Attach islands */
     G_message(_("Attaching islands..."));
+    Vect_build_partial(Out, GV_BUILD_NONE);
     Vect_build_partial(Out, GV_BUILD_ATTACH_ISLES);
 
 
@@ -181,6 +184,8 @@
 	Vect_append_point(Points, Centr[area].x, Centr[area].y, 0.0);
 
 	/* Add new cats for all combinations of input cats (-1 in cycle for null) */
+	/* TODO: put cats of input maps into different layers, i.e.
+	 * preserve cat values, change layer number if needed */
 	for (i = -1; i < Centr[area].cat[0]->n_cats; i++) {
 	    int j;
 

Modified: grass/trunk/vector/v.overlay/line_area.c
===================================================================
--- grass/trunk/vector/v.overlay/line_area.c	2012-11-06 13:34:34 UTC (rev 53701)
+++ grass/trunk/vector/v.overlay/line_area.c	2012-11-06 13:56:24 UTC (rev 53702)
@@ -136,6 +136,8 @@
 	    Vect_reset_cats(OCats);
 
 	    /* rewrite with all combinations of acat - bcat (-1 in cycle for null) */
+	    /* TODO: put cats of input maps into different layers, i.e.
+	     * preserve cat values, change layer number if needed */
 	    for (i = -1; i < Cats->n_cats; i++) {	/* line cats */
 		int j;
 



More information about the grass-commit mailing list