15 #include <grass/dbmi.h>
16 #include <grass/vedit.h>
33 double x1,
double y1,
double x2,
double y2,
34 double start,
double step)
37 int line,
type, temp_line;
41 struct line_cats *Cats;
42 struct line_pnts *Points, *Points_se;
45 struct line_pnts **Points_a, **Points_b;
46 int nlines_a, nlines_b;
60 cv.ctype = DB_C_TYPE_DOUBLE;
74 for (i = 0; i < List->n_values; i++) {
75 line = List->value[i];
82 if (!(type & GV_LINE))
87 &Points_a, &Points_b, &nlines_a, &nlines_b,
90 if (nlines_a < 2 || nlines_b < 1)
94 for (p_i = 0; p_i < Points_a[0]->n_points; p_i++) {
95 Points_a[0]->z[p_i] = 0;
99 cv.value[cv_i].cat = line;
100 cv.value[cv_i++].val.d = dist;
109 for (cv_i = 0; cv_i < cv.n_values; cv_i++) {
110 line = cv.value[cv_i].cat;
113 for (p_i = 0; p_i < Points->n_points; p_i++) {
114 Points->z[p_i] = value;
134 return nlines_modified;