19 #include <sys/types.h>
25 unsigned char buf[10];
28 G_debug(1,
"dig__write_head()");
89 unsigned char buf[10];
92 G_debug(2,
"dig__read_head(): name = '%s'", Map->
name);
106 "Coor header: file version %d.%d , supported from GRASS version %d.%d",
122 G_fatal_error(
"Vector 'coor' format version %d.%d is not supported "
123 "by this version of GRASS. "
124 "Update your GRASS.",
131 "Your GRASS version does not fully support vector format %d.%d."
132 " Consider to upgrade GRASS.",
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
int G_debug(int, const char *,...) __attribute__((format(printf
#define GV_COOR_VER_MAJOR
The latest versions of files known by current version of the library. Used for new files.
#define GV_COOR_HEAD_SIZE
Coordinates file head size.
#define GV_COOR_VER_MINOR
int dig__fread_port_O(off_t *, size_t, struct gvfile *, size_t)
Read off_ts from the Portable Vector Format.
int dig__fwrite_port_C(const char *, size_t, struct gvfile *)
Write chars to the Portable Vector Format.
void dig_init_portable(struct Port_info *, int)
Set Port_info structure to byte order of file.
int dig__fread_port_L(long *, size_t, struct gvfile *)
Read longs from the Portable Vector Format.
int dig__fwrite_port_L(const long *, size_t, struct gvfile *)
Write longs to the Portable Vector Format.
off_t dig_ftell(struct gvfile *file)
Get struct gvfile position.
int dig_set_cur_port(struct Port_info *)
Set current Port_info structure.
int dig__fread_port_C(char *, size_t, struct gvfile *)
Read chars from the Portable Vector Format.
int dig_fseek(struct gvfile *file, off_t offset, int whence)
Set struct gvfile position.
int dig__fwrite_port_O(const off_t *, size_t, struct gvfile *, size_t)
Write off_ts to the Portable Vector Format.
int dig__read_head(struct Map_info *Map)
int dig__write_head(struct Map_info *Map)
struct gvfile dig_fp
GV file pointer (native format only)
struct dig_head head
Header info.
char * name
Map name (for 4.0)
int byte_order
File byte order.
int minor
Current version (minor)
int back_major
Earliest version that can use this data format (major)
int back_minor
Earliest version that can use this data format (minor)
int major
Current version (major)
struct Version_info coor_version
Version info for coor file.
off_t size
Coor file size.
int with_z
2D/3D vector data
long head_size
Coor header size.
struct Port_info port
Portability information.