|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
Vector library - update topo structure (lower level functions) More...
#include <sys/types.h>#include <unistd.h>#include <stdlib.h>#include <stdio.h>#include <grass/vector.h>#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
| int | dig_init_plus (struct Plus_head *Plus) |
| Initialize Plus_head structure. | |
| void | dig_free_plus_nodes (struct Plus_head *Plus) |
| Free Plus->Node structure. | |
| void | dig_free_plus_lines (struct Plus_head *Plus) |
| Free Plus->Line structure. | |
| void | dig_free_plus_areas (struct Plus_head *Plus) |
| Free Plus->Area structure. | |
| void | dig_free_plus_isles (struct Plus_head *Plus) |
| Free Plus->Isle structure. | |
| void | dig_free_plus (struct Plus_head *Plus) |
| Free Plus structure. | |
| int | dig_load_plus (struct Plus_head *Plus, struct gvfile *plus, int head_only) |
| Reads topo file to topo structure. | |
| int | dig_write_plus_file (struct gvfile *fp_plus, struct Plus_head *Plus) |
| Writes topo structure to topo file. | |
| int | dig_write_nodes (struct gvfile *plus, struct Plus_head *Plus) |
| Writes topo structure (nodes) to topo file. | |
| int | dig_write_lines (struct gvfile *plus, struct Plus_head *Plus) |
| Writes topo structure (lines) to topo file. | |
| int | dig_write_areas (struct gvfile *plus, struct Plus_head *Plus) |
| Writes topo structure (areas) to topo file. | |
| int | dig_write_isles (struct gvfile *plus, struct Plus_head *Plus) |
| Writes topo structure (isles) to topo file. | |
Vector library - update topo structure (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.c.
Free Plus structure.
Structure is not inited and dig_init_plus() should follow.
| [in] | Plus | pointer to Plus_head structure |
Definition at line 173 of file plus.c.
References dig_cidx_free(), dig_free_plus_areas(), dig_free_plus_isles(), dig_free_plus_lines(), dig_free_plus_nodes(), dig_spidx_free(), and G_debug().
Referenced by dig_load_plus(), Vect__open_old(), and Vect_close().
Free Plus->Area structure.
| [in] | Plus | pointer to Plus_head structure |
Definition at line 114 of file plus.c.
References dig_free_area(), G_debug(), G_free(), and NULL.
Referenced by dig_free_plus(), and Vect__build_downgrade().
Free Plus->Isle structure.
| [in] | Plus | pointer to Plus_head structure |
Definition at line 142 of file plus.c.
References dig_free_isle(), G_debug(), G_free(), and NULL.
Referenced by dig_free_plus(), and Vect__build_downgrade().
Free Plus->Line structure.
| [in] | Plus | pointer to Plus_head structure |
Definition at line 78 of file plus.c.
References dig_free_line(), G_debug(), G_free(), and NULL.
Referenced by dig_free_plus(), and Vect__build_downgrade().
Free Plus->Node structure.
| [in] | Plus | pointer to Plus_head structure |
Definition at line 50 of file plus.c.
References dig_free_node(), G_debug(), G_free(), and NULL.
Referenced by dig_free_plus(), and Vect__build_downgrade().
Initialize Plus_head structure.
| [in,out] | Plus | pointer to Plus_head structure |
Definition at line 30 of file plus.c.
References dig_cidx_init(), dig_spidx_init(), G_debug(), G_zero(), and GV_BUILD_NONE.
Referenced by dig_load_plus(), Vect__open_old(), and Vect__open_topo_pg().
Reads topo file to topo structure.
| [in,out] | Plus | pointer to Plus_head structure |
| [in] | plus | topo file |
| [in] | head_only | read only head |
Definition at line 195 of file plus.c.
References _, dig_alloc_areas(), dig_alloc_isles(), dig_alloc_lines(), dig_alloc_nodes(), dig_free_plus(), dig_fseek(), dig_init_plus(), dig_Rd_P_area(), dig_Rd_P_isle(), dig_Rd_P_line(), dig_Rd_P_node(), dig_Rd_Plus_head(), dig_set_cur_port(), G_debug(), and G_fatal_error().
Referenced by Vect_open_topo().
Writes topo structure (areas) to topo file.
| [in,out] | plus | topo file |
| [in] | Plus | pointer to Plus_head structure |
Definition at line 368 of file plus.c.
References dig_ftell(), and dig_Wr_P_area().
Referenced by dig_write_plus_file().
Writes topo structure (isles) to topo file.
| [in,out] | plus | topo file |
| [in] | Plus | pointer to Plus_head structure |
Definition at line 392 of file plus.c.
References dig_ftell(), and dig_Wr_P_isle().
Referenced by dig_write_plus_file().
Writes topo structure (lines) to topo file.
| [in,out] | plus | topo file |
| [in] | Plus | pointer to Plus_head structure |
Definition at line 344 of file plus.c.
References dig_ftell(), and dig_Wr_P_line().
Referenced by dig_write_plus_file().
Writes topo structure (nodes) to topo file.
| [in,out] | plus | topo file |
| [in] | Plus | pointer to Plus_head structure |
Definition at line 321 of file plus.c.
References dig_ftell(), and dig_Wr_P_node().
Referenced by dig_write_plus_file().
Writes topo structure to topo file.
| [in,out] | fp_plus | topo file |
| [in] | Plus | pointer to Plus_head structure |
Definition at line 271 of file plus.c.
References _, dig_fflush(), dig_rewind(), dig_set_cur_port(), dig_Wr_Plus_head(), dig_write_areas(), dig_write_isles(), dig_write_lines(), dig_write_nodes(), and G_warning().
Referenced by Vect_save_topo().