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