GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
Loading...
Searching...
No Matches
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)
 
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)
 

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 _, G_debug(), G_fatal_error(), AMI_STREAM< T >::name(), 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(), AMI_STREAM< T >::name(), and V1_rewind_pg().