15 #include <grass/vedit.h>
30 struct line_cats *Cats;
31 struct line_pnts *Points;
45 for (i = 0; i < List->n_values; i++) {
46 line = List->value[i];
53 G_debug(3,
"Vedit_copy_lines(): type=%d, line=%d", type, line);
struct line_pnts * Vect_new_line_struct()
Creates and initializes a struct line_pnts.
int Vect_destroy_cats_struct(struct line_cats *p)
Frees all memory associated with line_cats structure, including the struct itself.
int Vedit_copy_lines(struct Map_info *Map, struct Map_info *FromMap, struct ilist *List)
Copy selected primitives.
int Vect_line_alive(struct Map_info *Map, int line)
Check if feature is alive or dead.
struct line_cats * Vect_new_cats_struct()
Creates and initializes line_cats structure.
int G_debug(int level, const char *msg,...)
Print debugging message.
long Vect_write_line(struct Map_info *Map, int type, struct line_pnts *points, struct line_cats *cats)
Writes new feature to the end of file (table)
int Vect_destroy_line_struct(struct line_pnts *p)
Frees all memory associated with a struct line_pnts, including the struct itself. ...
int Vect_read_line(struct Map_info *Map, struct line_pnts *line_p, struct line_cats *line_c, int line)
Read vector feature.