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;
59 cv.ctype = DB_C_TYPE_DOUBLE;
73 for (i = 0; i < List->n_values; i++) {
74 line = List->value[i];
81 if (!(type & GV_LINE))
86 &Points_a, &Points_b, &nlines_a, &nlines_b,
89 if (nlines_a < 2 || nlines_b < 1)
93 for (p_i = 0; p_i < Points_a[0]->n_points; p_i++) {
94 Points_a[0]->z[p_i] = 0;
98 cv.value[cv_i].cat = line;
99 cv.value[cv_i++].val.d = dist;
108 for (cv_i = 0; cv_i < cv.n_values; cv_i++) {
109 line = cv.value[cv_i].cat;
112 for (p_i = 0; p_i < Points->n_points; p_i++) {
113 Points->z[p_i] =
value;
133 return nlines_modified;