Browse Source

v.segment: use Vect_line_parallel2()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@71691 15284696-431f-4ddb-bdfa-cd5b030d7da7
Moritz Lennert 7 năm trước cách đây
mục cha
commit
bd79422edc
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      vector/v.segment/main.c

+ 6 - 2
vector/v.segment/main.c

@@ -238,8 +238,12 @@ 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_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);
 	    }