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

Vector library - reading features - simple feature access. More...

#include <grass/vector.h>
#include <grass/glocale.h>
Include dependency graph for read_sfa.c:

Go to the source code of this file.

Functions

int V2_read_line_sfa (struct Map_info *Map, struct line_pnts *line_p, struct line_cats *line_c, int line)
 Reads feature from OGR/PostGIS layer on topological level. More...
 

Detailed Description

Vector library - reading features - simple feature access.

Higher level functions for reading/writing/manipulating vectors.

See read_ogr.c (OGR interface) and read_pg.c (PostGIS interface) for imlementation issues.

(C) 2011-2012 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
Martin Landa <landa.martin gmail.com>

Definition in file read_sfa.c.

Function Documentation

◆ V2_read_line_sfa()

int V2_read_line_sfa ( struct Map_info Map,
struct line_pnts line_p,
struct line_cats line_c,
int  line 
)

Reads feature from OGR/PostGIS layer on topological level.

This function implements random access on level 2.

Note: Topology must be built at level >= GV_BUILD_BASE

Parameters
Mappointer to Map_info structure
[out]line_pcontainer used to store line points within (pointer to line_pnts struct)
[out]line_ccontainer used to store line categories within (pointer to line_cats struct)
linefeature id (starts at 1)
Returns
feature type
-2 no more features
-1 on failure

Definition at line 40 of file read_sfa.c.