[GRASS-SVN] r71691 - grass/trunk/vector/v.segment

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 12 04:56:45 PST 2017


Author: mlennert
Date: 2017-11-12 04:56:45 -0800 (Sun, 12 Nov 2017)
New Revision: 71691

Modified:
   grass/trunk/vector/v.segment/main.c
Log:
v.segment: use Vect_line_parallel2()

Modified: grass/trunk/vector/v.segment/main.c
===================================================================
--- grass/trunk/vector/v.segment/main.c	2017-11-12 12:48:58 UTC (rev 71690)
+++ grass/trunk/vector/v.segment/main.c	2017-11-12 12:56:45 UTC (rev 71691)
@@ -238,8 +238,12 @@
 	    Vect_cat_set(SCats, 1, id);
 
 	    if (fabs(side_offset) > 0.0) {
-		Vect_line_parallel(SPoints, side_offset, side_offset / 10.,
-				   TRUE, PlPoints);
+		/*Vect_line_parallel(SPoints, side_offset, side_offset / 10.,
+				   TRUE, PlPoints);*/
+		Vect_line_parallel2(SPoints, side_offset, side_offset,
+				   0.0, 1, FALSE, side_offset / 10.,
+				   PlPoints);
+
 		Vect_write_line(&Out, GV_LINE, PlPoints, SCats);
 		G_debug(3, "  segment n_points = %d", PlPoints->n_points);
 	    }



More information about the grass-commit mailing list