GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
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 133 of file plus_line.c.
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 216 of file plus_line.c.
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 342 of file plus_line.c.
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 382 of file plus_line.c.
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 189 of file plus_line.c.