GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
Vector library - update topo for lines (lower level functions) More...
Go to the source code of this file.
Functions | |
int | dig_add_line (struct Plus_head *plus, int type, const struct line_pnts *Points, const struct bound_box *box, off_t offset) |
Add new line to Plus_head structure. More... | |
int | dig_restore_line (struct Plus_head *plus, int lineid, int type, const struct line_pnts *Points, const struct bound_box *box, off_t offset) |
Restore line in Plus_head structure. More... | |
int | dig_del_line (struct Plus_head *plus, int line, double x, double y, double z) |
Delete line from Plus_head structure. More... | |
plus_t | dig_line_get_area (struct Plus_head *plus, plus_t line, int side) |
Get area number on line side. More... | |
int | dig_line_set_area (struct Plus_head *plus, plus_t line, int side, plus_t area) |
Set area number on line side. More... | |
Vector library - update topo for lines (lower level functions)
Lower level functions for reading/writing/manipulating vectors.
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file plus_line.c.
int dig_add_line | ( | struct Plus_head * | plus, |
int | type, | ||
const struct line_pnts * | Points, | ||
const struct bound_box * | box, | ||
off_t | offset | ||
) |
Add new line to Plus_head structure.
[in,out] | plus | pointer to Plus_head structure |
type | feature type | |
Points | line geometry | |
box | bounding box | |
offset | line offset |
Definition at line 136 of file plus_line.c.
References Plus_head::alloc_lines, dig_alloc_lines(), and Plus_head::n_lines.
int dig_del_line | ( | struct Plus_head * | plus, |
int | line, | ||
double | x, | ||
double | y, | ||
double | z | ||
) |
Delete line from Plus_head structure.
Doesn't update area/isle references (dig_del_area() or dig_del_isle()) must be run before the line is deleted if the line is part of such structure). Update is info about line in nodes. If this line is last in node then node is deleted.
[in,out] | plus | pointer to Plus_head structure |
[in] | line | line id |
[in] | x,y,z | coordinates |
Definition at line 219 of file plus_line.c.
References G_debug(), Plus_head::Line, P_topo_b::N1, and P_topo_b::N2.
Get area number on line side.
[in] | plus | pointer Plus_head structure |
[in] | line | line id |
[in] | side | side id (GV_LEFT || GV_RIGHT) |
Definition at line 343 of file plus_line.c.
References Plus_head::Line.
Referenced by Vect_build_line_area().
Set area number on line side.
[in] | plus | pointer Plus_head structure |
[in] | line | line id |
[in] | side | side id (GV_LEFT || GV_RIGHT) |
[in] | area | area id |
Definition at line 384 of file plus_line.c.
References Plus_head::Line.
int dig_restore_line | ( | struct Plus_head * | plus, |
int | lineid, | ||
int | type, | ||
const struct line_pnts * | Points, | ||
const struct bound_box * | box, | ||
off_t | offset | ||
) |
Restore line in Plus_head structure.
[in,out] | plus | pointer to Plus_head structure |
type | feature type | |
Points | line geometry | |
box | bounding box | |
offset | line offset |
Definition at line 192 of file plus_line.c.
References Plus_head::n_lines.