|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
OGSF library - loading vector sets (lower level functions) More...
#include <stdlib.h>#include <grass/gis.h>#include <grass/colors.h>#include <grass/raster.h>#include <grass/vector.h>#include <grass/dbmi.h>#include <grass/glocale.h>#include <grass/ogsf.h>
Go to the source code of this file.
Functions | |
| geoline * | Gv_load_vect (const char *grassname, int *nlines) |
| Load vector map to memory. | |
| void | sub_Vectmem (int minus) |
| Tracking memory. | |
| int | Gv_load_vect_thematic (geovect *gv, struct Colors *colors) |
| Load styles for geolines based on thematic mapping. | |
OGSF library - loading vector sets (lower level functions)
GRASS OpenGL gsurf OGSF Library
(C) 1999-2008, 2011 by the GRASS Development Team
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 gv3.c.
Load vector map to memory.
The other alternative may be to load to a tmp file
| grassname | vector map name | |
| [out] | nlines | number of loaded features |
Definition at line 47 of file gv3.c.
References _, Cell_head::east, G_calloc, G_debug(), G_find_vector2(), G_free(), G_fully_qualified_name(), G_get_set_window(), G_malloc, G_message(), G_warning(), GS_v3cross(), GV_FACE, GV_LINES, line_pnts::n_points, g_line::next, Cell_head::north, NULL, OGSF_LINE, OGSF_POLYGON, PORT_DOUBLE_MAX, Cell_head::south, Cell_head::top, Vect_close(), Vect_get_area_points(), Vect_get_num_areas(), Vect_is_3d(), Vect_new_cats_struct(), Vect_new_line_struct(), Vect_open_old(), Vect_read_next_line(), Vect_reset_cats(), Vect_set_constraint_region(), Vect_set_open_level(), Cell_head::west, X, line_pnts::x, Y, line_pnts::y, Z, and line_pnts::z.
Referenced by GV_load_vector().
Load styles for geolines based on thematic mapping.
| gv | pointer to geovect structure |
| colors | pointer to Colors structure or NULL |
Definition at line 319 of file gv3.c.
References _, BLU_MASK, db_get_value_int(), db_get_value_string(), db_select_value(), db_start_driver_open_database(), field_info::driver, G_fatal_error(), G_find_vector2(), G_fully_qualified_name(), G_malloc, G_message(), G_str_to_color(), G_warning(), G_zero(), GRN_MASK, Rast_get_c_color(), RED_MASK, Vect_cat_get(), Vect_get_field(), Vect_open_old(), and Vect_set_open_level().
Referenced by GV_set_style_thematic().