GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Gv3.c File Reference

OGSF library - loading vector sets (lower level functions) More...

#include <stdlib.h>
#include <grass/gis.h>
#include <grass/Vect.h>
#include <grass/glocale.h>
#include <grass/gstypes.h>
Include dependency graph for Gv3.c:

Go to the source code of this file.

Functions

geoline * Gv_load_vect (const char *grassname, int *nlines)
 Load vector map to memory. More...
 
void sub_Vectmem (int minus)
 Tracking memory. More...
 

Detailed Description

OGSF library - loading vector sets (lower level functions)

GRASS OpenGL gsurf OGSF Library

(C) 1999-2008 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)
Doxygenized by Martin Landa <landa.martin gmail.com> (May 2008)

Definition in file Gv3.c.

Function Documentation

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 45 of file Gv3.c.

References G_debug(), G_find_vector2(), G_free(), G_fully_qualified_name(), G_get_set_window(), G_message(), G_warning(), GS_v3cross(), main::GV_LINES, n, NULL, dialogs::type, Vect_close(), Vect_get_area_points(), Vect_get_num_areas(), Vect_is_3d(), Vect_new_line_struct(), Vect_open_old(), Vect_read_next_line(), Vect_set_constraint_region(), Vect_set_open_level(), X, and Y.

Referenced by GV_load_vector().

void sub_Vectmem ( int  minus)

Tracking memory.

Parameters
minusmimus number

Definition at line 272 of file Gv3.c.

Referenced by gv_free_vectmem().