19 #include <grass/segment.h>
20 #include <grass/gis.h>
54 ncols = SEG->ncols - SEG->spill;
56 size = scols * SEG->len;
59 for (col = 0; col < ncols; col += scols) {
63 (
"Failed seek in segment file for index = %d n = %d at col:row %d:%d",
68 if ((result = write(SEG->fd, buf, size)) != size) {
79 buf = ((
const char *)buf) +
size;
82 if ((size = SEG->spill * SEG->len)) {
86 (
"Failed seek in segment file for index = %d n = %d at col:row %d:%d",
90 if (write(SEG->fd, buf, size) != size) {
91 G_warning(
"segment_put_row final write error: %s",
int segment_seek(const SEGMENT *SEG, int n, int index)
int segment_address(const SEGMENT *SEG, int row, int col, int *n, int *index)
int segment_put_row(const SEGMENT *SEG, const void *buf, int row)
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)