[GRASS-SVN] r71688 - grass/trunk/ps/ps.map
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 12 04:47:19 PST 2017
Author: mmetz
Date: 2017-11-12 04:47:19 -0800 (Sun, 12 Nov 2017)
New Revision: 71688
Modified:
grass/trunk/ps/ps.map/ps_vlines.c
Log:
ps.map: use Vect_line_parallel2()
Modified: grass/trunk/ps/ps.map/ps_vlines.c
===================================================================
--- grass/trunk/ps/ps.map/ps_vlines.c 2017-11-12 12:26:52 UTC (rev 71687)
+++ grass/trunk/ps/ps.map/ps_vlines.c 2017-11-12 12:47:19 UTC (rev 71688)
@@ -150,7 +150,10 @@
d = vector.layer[vec].offset / PS.ew_to_x;
adjust_line(Points); /* LL projection */
- Vect_line_parallel(Points, d, tol, 1, nPoints);
+ if (d > 0)
+ Vect_line_parallel2(Points, d, d, 90, 1, 0, tol, nPoints);
+ else
+ Vect_line_parallel2(Points, -d, -d, 90, 0, 0, tol, nPoints);
pPoints = nPoints;
}
@@ -186,7 +189,10 @@
if (vector.layer[vec].ref == LINE_REF_RIGHT)
d = -d;
adjust_line(Points); /* LL projection */
- Vect_line_parallel(Points, d, tol, 1, nPoints);
+ if (d > 0)
+ Vect_line_parallel2(Points, d, d, 90, 1, 0, tol, nPoints);
+ else
+ Vect_line_parallel2(Points, -d, -d, 90, 0, 0, tol, nPoints);
Vect_line_reverse(nPoints);
fprintf(PS.fp, "NP\n");
More information about the grass-commit
mailing list