[GRASS-SVN] r69245 - grass/branches/releasebranch_7_2/vector/v.overlay

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 23 08:20:23 PDT 2016


Author: martinl
Date: 2016-08-23 08:20:23 -0700 (Tue, 23 Aug 2016)
New Revision: 69245

Modified:
   grass/branches/releasebranch_7_2/vector/v.overlay/main.c
Log:
v.overlay: added _1 to attribute table's name when working with v.overlay (fix #2765) (merge r69194 from trunk)


Modified: grass/branches/releasebranch_7_2/vector/v.overlay/main.c
===================================================================
--- grass/branches/releasebranch_7_2/vector/v.overlay/main.c	2016-08-23 15:07:00 UTC (rev 69244)
+++ grass/branches/releasebranch_7_2/vector/v.overlay/main.c	2016-08-23 15:20:23 UTC (rev 69245)
@@ -223,7 +223,7 @@
 
     /* Create dblinks */
     if (ofield[0] > 0) {
-	Fi = Vect_default_field_info(&Out, ofield[0], NULL, GV_MTABLE);
+	Fi = Vect_default_field_info(&Out, ofield[0], NULL, GV_1TABLE);
     }
 
     db_init_string(&sql);
@@ -649,7 +649,8 @@
     findex = Vect_cidx_get_field_index(Out, outfield);
     
     Vect_cidx_get_unique_cats_by_index(Out, findex, list);
-    Vect_copy_table_by_cats(In, Out, infield, outfield, NULL, GV_MTABLE, list->value, list->n_values);
+    Vect_copy_table_by_cats(In, Out, infield, outfield, NULL,
+                            GV_1TABLE, list->value, list->n_values);
     
     Vect_destroy_list(list);
 }



More information about the grass-commit mailing list