30 int nbgmaps,
struct ilist *List,
double move_x,
31 double move_y,
double move_z,
int snap,
double thresh)
36 int type, newline, line;
45 for (i = 0; i < List->
n_values; i++) {
46 line = List->
value[i];
53 G_debug(3,
"Vedit_move_lines(): type=%d, line=%d", type, line);
60 for (j = 0; j < Points->
n_points; j++) {
72 for (bgi = 0; bgi < nbgmaps; bgi++) {
74 (BgMap[bgi], -1, &x[j], &y[j], &z[j], thresh,
int Vedit_move_lines(struct Map_info *Map, struct Map_info **BgMap, int nbgmaps, struct ilist *List, double move_x, double move_y, double move_z, int snap, double thresh)
Move selected primitives.
off_t Vect_rewrite_line(struct Map_info *, off_t, int, const struct line_pnts *, const struct line_cats *)
Rewrites existing feature (topological level required)
int n_points
Number of points.
int n_values
Number of values in the list.
double * x
Array of X coordinates.
Feature geometry info - coordinates.
struct line_pnts * Vect_new_line_struct(void)
Creates and initializes a line_pnts structure.
void Vect_destroy_cats_struct(struct line_cats *)
Frees all memory associated with line_cats structure, including the struct itself.
double * y
Array of Y coordinates.
int Vect_is_3d(const struct Map_info *)
Check if vector map is 3D.
struct line_cats * Vect_new_cats_struct(void)
Creates and initializes line_cats structure.
int Vect_line_alive(const struct Map_info *, int)
Check if feature is alive or dead (topological level required)
double * z
Array of Z coordinates.
int * value
Array of values.
void Vect_destroy_line_struct(struct line_pnts *)
Frees all memory associated with a line_pnts structure, including the structure itself.
int Vect_read_line(const struct Map_info *, struct line_pnts *, struct line_cats *, int)
Read vector feature (topological level required)
int Vedit_snap_point(struct Map_info *, int, double *, double *, double *, double, int)
Snap given point to the nearest primitive.
int G_debug(int, const char *,...) __attribute__((format(printf