grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

rewind.c File Reference

Vector library - rewind data. More...

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

Go to the source code of this file.

Functions

static int rew_dummy ()
 
static int format ()
 
int Vect_rewind (struct Map_info *Map)
 Rewind vector map to cause reads to start at beginning. More...
 

Variables

static int(* Rewind_array [][4])()
 

Detailed Description

Vector library - rewind data.

Vector library - rewind data (native format)

Higher level functions for reading/writing/manipulating vectors.

(C) 2001-2009, 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
Original author CERL, probably Dave Gerdes or Mike Higgins.
Update to GRASS 5.7 Radim Blazek and David D. Gray.
Level 3 by Martin Landa <landa.martin gmail.com>

Higher level functions for reading/writing/manipulating vectors.

(C) 2001-2009, 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
Original author CERL, probably Dave Gerdes or Mike Higgins.
Update to GRASS 5.7 Radim Blazek and David D. Gray.

Definition in file rewind.c.

Function Documentation

◆ format()

static int format ( )
static

Definition at line 27 of file rewind.c.

References _, and G_fatal_error().

◆ rew_dummy()

static int rew_dummy ( )
static

Definition at line 21 of file rewind.c.

◆ Vect_rewind()

int Vect_rewind ( struct Map_info Map)

Rewind vector map to cause reads to start at beginning.

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

Definition at line 66 of file rewind.c.

References Map_info::format, G_debug(), Map_info::level, Map_info::name, Rewind_array, and VECT_OPEN.

Referenced by copy_lines_1(), P_estimate_splinestep(), P_Read_Vector_Region_Map(), Vect__open_old(), Vect_build_nat(), Vect_copy_map_lines_field(), Vect_get_map_box1(), and Vect_write_ascii().

Variable Documentation

◆ Rewind_array

int(* Rewind_array[][4])() ( )
static
Initial value:
= {
{
, {
, {
, {
}
int V2_rewind_nat(struct Map_info *Map)
Rewind vector map to cause reads to start at beginning on topological level (level 2) - native format...
Definition: rewind_nat.c:40
int V1_rewind_nat(struct Map_info *Map)
Rewind vector map to cause reads to start at beginning on non-topological level (level 1) - native fo...
Definition: rewind_nat.c:27
int V1_rewind_ogr(struct Map_info *Map)
Rewind vector map (OGR layer) to cause reads to start at beginning (level 1)
Definition: rewind_ogr.c:32
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)
Definition: rewind_ogr.c:61
static int rew_dummy()
Definition: rewind.c:21
static int format()
Definition: rewind.c:27

Definition at line 35 of file rewind.c.

Referenced by Vect_rewind().