[GRASS-SVN] r58360 - grass/trunk/vector/v.in.region
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Dec 2 11:00:06 PST 2013
Author: martinl
Date: 2013-12-02 11:00:05 -0800 (Mon, 02 Dec 2013)
New Revision: 58360
Modified:
grass/trunk/vector/v.in.region/main.c
Log:
v.in.region: set category also for boundaries
Modified: grass/trunk/vector/v.in.region/main.c
===================================================================
--- grass/trunk/vector/v.in.region/main.c 2013-12-02 18:57:07 UTC (rev 58359)
+++ grass/trunk/vector/v.in.region/main.c 2013-12-02 19:00:05 UTC (rev 58360)
@@ -115,13 +115,14 @@
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);
Vect_reset_line(Points);
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