GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
rewind_nat.c File Reference
#include <grass/vector.h>
Include dependency graph for rewind_nat.c:

Go to the source code of this file.

Functions

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 format - internal use only. More...
 
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 - internal use only. More...
 

Function Documentation

◆ V1_rewind_nat()

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 format - internal use only.

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

Definition at line 27 of file rewind_nat.c.

References Map_info::dig_fp, dig_fseek(), Map_info::head, and dig_head::head_size.

Referenced by V2_rewind_nat().

◆ V2_rewind_nat()

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 - internal use only.

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

Definition at line 40 of file rewind_nat.c.

References Map_info::next_line, and V1_rewind_nat().