Browse Source

v.overlay add TODOs

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53702 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 12 years ago
parent
commit
305a660b7a
2 changed files with 7 additions and 0 deletions
  1. 5 0
      vector/v.overlay/area_area.c
  2. 2 0
      vector/v.overlay/line_area.c

+ 5 - 0
vector/v.overlay/area_area.c

@@ -76,11 +76,14 @@ int area_area(struct Map_info *In, int *field, struct Map_info *Out,
 	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 @@ int area_area(struct Map_info *In, int *field, struct Map_info *Out,
 	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;
 

+ 2 - 0
vector/v.overlay/line_area.c

@@ -136,6 +136,8 @@ int line_area(struct Map_info *In, int *field, struct Map_info *Out,
 	    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;