Go to the documentation of this file.00001
00017 #include <grass/vedit.h>
00018
00028 int Vedit_delete_lines(struct Map_info *Map, struct ilist *List)
00029 {
00030 int i, line;
00031 int nlines_removed;
00032
00033 nlines_removed = 0;
00034
00035
00036 for (i = 0; i < List->n_values; i++) {
00037 line = List->value[i];
00038
00039 if (Vect_line_alive(Map, line)) {
00040 if (Vect_delete_line(Map, line) < 0) {
00041 return -1;
00042 }
00043
00044 G_debug(3, "Vedit_delete_lines(): line=%d", line);
00045 nlines_removed++;
00046 }
00047 }
00048
00049 return nlines_removed;
00050 }