GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73679
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gp3.c File Reference

OGSF library - loading point 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 gp3.c:

Go to the source code of this file.


geopointGp_load_sites (const char *name, int *nsites, int *has_z)
 Load to points to memory. More...
int Gp_load_sites_thematic (geosite *gp, struct Colors *colors)
 Load styles for geopoints based on thematic mapping. More...

Detailed Description

OGSF library - loading point 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.

Bill Brown USACERL, GMSL/University of Illinois (January 1994)
Updated by Martin Landa <landa.martin> (doxygenized in May 2008, thematic mapping in June 2011)

Definition in file gp3.c.

Function Documentation

geopoint* Gp_load_sites ( const char *  name,
int nsites,
int has_z 

Load to points to memory.

The other alternative may be to load to a tmp file.

namename of vector map to be loaded
[out]nsitesnumber of loaded points
[out]has_z2D or 3D points data loaded?
pointer to geopoint struct (array)
NULL on failure

Definition at line 40 of file gp3.c.

References _, g_point::cats, g_point::dims, Cell_head::east, G_debug(), G_fatal_error(), G_find_vector2(), G_free(), G_fully_qualified_name(), G_get_set_window(), G_message(), G_warning(), G_zero(), GV_POINTS, g_point::highlighted, line_cats::n_cats, g_point::next, Cell_head::north, NULL, g_point::p3, PORT_DOUBLE_MAX, Cell_head::south, Cell_head::top, Vect_close(), 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 GP_load_site().