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

Vector library - rewind data (PostGIS layers) More...

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

Go to the source code of this file.

Functions

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

Detailed Description

Vector library - rewind data (PostGIS layers)

Higher level functions for reading/writing/manipulating vectors.

(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 rewind_pg.c.

Function Documentation

int V1_rewind_pg ( struct Map_info Map)

Rewind vector map (PostGIS 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 34 of file rewind_pg.c.

References _, Format_info_pg::cache, Format_info_cache::ctype, Format_info_cache::fid, Map_info::fInfo, G_debug(), G_fatal_error(), Format_info_cache::lines_next, Format_info_cache::lines_num, Map_info::name, Format_info_pg::next_line, and Format_info::pg.

Referenced by V2_rewind_pg().

int V2_rewind_pg ( struct Map_info Map)

Rewind vector map (PostGIS 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 70 of file rewind_pg.c.

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