Selaa lähdekoodia

v.lrs.segment: use Vect_line_parallel2()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71700 15284696-431f-4ddb-bdfa-cd5b030d7da7
Moritz Lennert 7 vuotta sitten
vanhempi
commit
96b165264d
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      vector/v.lrs/v.lrs.segment/main.c

+ 3 - 2
vector/v.lrs/v.lrs.segment/main.c

@@ -319,8 +319,9 @@ int main(int argc, char **argv)
 	    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);
 	    }