GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
gv3.c File Reference

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>
Include dependency graph for gv3.c:

Go to the source code of this file.

Functions

geolineGv_load_vect (const char *grassname, int *nlines)
 Load vector map to memory. More...
 
void sub_Vectmem (int minus)
 Tracking memory. More...
 
int Gv_load_vect_thematic (geovect *gv, struct Colors *colors)
 Load styles for geolines based on thematic mapping. More...
 

Detailed Description

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.

Author
Bill Brown USACERL (December 1993)
Updated by Martin Landa <landa.martin gmail.com> (doxygenized in May 2008, thematic mapping in August 2011)

Definition in file gv3.c.

Function Documentation

◆ Gv_load_vect()

geoline* Gv_load_vect ( const char *  grassname,
int *  nlines 
)

Load vector map to memory.

The other alternative may be to load to a tmp file

Parameters
grassnamevector map name
[out]numberof loaded features
Returns
pointer to geoline struct
NULL on failure

Definition at line 47 of file gv3.c.

References NULL.

◆ Gv_load_vect_thematic()

int Gv_load_vect_thematic ( geovect gv,
struct Colors colors 
)

Load styles for geolines based on thematic mapping.

Parameters
gvpointer to geovect structure
colorspointer to Colors structure or NULL
Returns
number of features defined by thematic mapping
-1 on error

Definition at line 313 of file gv3.c.

◆ sub_Vectmem()

void sub_Vectmem ( int  minus)

Tracking memory.

Parameters
minusmimus number

Definition at line 292 of file gv3.c.

References G_debug().

Referenced by gv_free_vectmem().