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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 12 08:14:28 PST 2017


Author: mlennert
Date: 2017-11-12 08:14:28 -0800 (Sun, 12 Nov 2017)
New Revision: 71700

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

Modified: grass/trunk/vector/v.lrs/v.lrs.segment/main.c
===================================================================
--- grass/trunk/vector/v.lrs/v.lrs.segment/main.c	2017-11-12 13:28:58 UTC (rev 71699)
+++ grass/trunk/vector/v.lrs/v.lrs.segment/main.c	2017-11-12 16:14:28 UTC (rev 71700)
@@ -319,8 +319,9 @@
 	    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_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