GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
Loading...
Searching...
No Matches
frmt.c File Reference
#include <string.h>
#include <stdio.h>
#include <grass/vector.h>
#include <grass/glocale.h>
#include <grass/gis.h>
Include dependency graph for frmt.c:

Go to the source code of this file.

Functions

int dig_read_frmt_ascii (FILE *dascii, struct Format_info *finfo)
 Read external vector format file.
 
int dig_write_frmt_ascii (FILE *dascii, struct Format_info *finfo, int format)
 

Function Documentation

◆ dig_read_frmt_ascii()

int dig_read_frmt_ascii ( FILE dascii,
struct Format_info finfo 
)

Read external vector format file.

Parameters
dasciiformat file (frmt)
[out]finfopointer to Format_info structure
Returns
format code
-1 on error

Definition at line 33 of file frmt.c.

References _, G_chop(), G_debug(), G_getl2(), G_store(), G_strcasecmp(), G_strlcpy(), G_warning(), G_zero(), GV_FORMAT_OGR, GV_FORMAT_POSTGIS, and GV_PG_FID_COLUMN.

Referenced by Vect__open_old().

◆ dig_write_frmt_ascii()

int dig_write_frmt_ascii ( FILE dascii,
struct Format_info finfo,
int  format 
)

Definition at line 154 of file frmt.c.

References G_debug(), and G_fatal_error().