GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71759
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rewind_ogr.c File Reference

Vector library - rewind data (OGR) More...

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

Go to the source code of this file.

Functions

int V1_rewind_ogr (struct Map_info *Map)
 Rewind vector map (OGR layer) to cause reads to start at beginning (level 1) More...
 
int V2_rewind_ogr (struct Map_info *Map)
 Rewind vector map (OGR layer) to cause reads to start at beginning on topological level (level 2) More...
 

Detailed Description

Vector library - rewind data (OGR)

Higher level functions for reading/writing/manipulating vectors.

(C) 2001-2009, 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
Radim Blazek, Piero Cavalieri

Definition in file rewind_ogr.c.

Function Documentation

int V1_rewind_ogr ( struct Map_info Map)

Rewind vector map (OGR layer) to cause reads to start at beginning (level 1)

Parameters
Mappointer to Map_info structure
Returns
0 on success
-1 on error

Definition at line 32 of file rewind_ogr.c.

References _, Format_info_ogr::cache, Map_info::fInfo, G_debug(), G_fatal_error(), Format_info_ogr::layer, Format_info_cache::lines_next, Format_info_cache::lines_num, Map_info::name, and Format_info::ogr.

Referenced by V2_rewind_ogr().

int V2_rewind_ogr ( struct Map_info Map)

Rewind vector map (OGR layer) to cause reads to start at beginning on topological level (level 2)

Parameters
Mappointer to Map_info structure
Returns
0 on success
-1 on error

Definition at line 61 of file rewind_ogr.c.

References _, G_debug(), G_fatal_error(), Map_info::name, Map_info::next_line, and V1_rewind_ogr().