[GRASS-SVN] r58794 - grass/trunk/vector/v.in.region

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 28 12:02:49 PST 2014


Author: mmetz
Date: 2014-01-28 12:02:49 -0800 (Tue, 28 Jan 2014)
New Revision: 58794

Modified:
   grass/trunk/vector/v.in.region/main.c
Log:
v.in.region: no categories for boundaries

Modified: grass/trunk/vector/v.in.region/main.c
===================================================================
--- grass/trunk/vector/v.in.region/main.c	2014-01-28 16:19:38 UTC (rev 58793)
+++ grass/trunk/vector/v.in.region/main.c	2014-01-28 20:02:49 UTC (rev 58794)
@@ -115,7 +115,6 @@
     Vect_append_point(Points, window.west, window.south, 0.0);
 
     if (type == GV_AREA) {
-        Vect_cat_set(Cats, 1, cat);
 
 	Vect_write_line(&Out, GV_BOUNDARY, Points, Cats);
 
@@ -123,6 +122,7 @@
 	Vect_append_point(Points, (window.west + window.east) / 2,
 			  (window.south + window.north) / 2, 0.0);
 
+	Vect_cat_set(Cats, 1, cat);
 	Vect_write_line(&Out, GV_CENTROID, Points, Cats);
     }
     else {			/* GV_LINE */



More information about the grass-commit mailing list