GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
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 "pg_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

◆ V1_rewind_pg()

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, Format_info::pg, and Vect__close_cursor_pg().

Referenced by V2_rewind_pg().

◆ 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().