GRASS 8 Programmer's Manual 8.6.0dev(2026)-c83afef6d3
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.

SPDX-FileCopyrightText: 2011-2012 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

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 32 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 68 of file rewind_pg.c.

References _, G_debug(), G_fatal_error(), AMI_STREAM< T >::name(), and V1_rewind_pg().