20 #include <sys/types.h>
47 G_warning(
_(
"Unable to write history for 3D raster map <%s>"),
64 _(
"Unable to move temp raster map <%s> to 3D raster map <%s>"),
93 if (lseek(map->
data_fd, (
long)(map->
offset -
sizeof(
int) -
sizeof(
long)),
101 G_warning(
_(
"Unable to write header for 3D raster map <%s>"),
107 if (write(map->
data_fd, <mp,
sizeof(
long)) !=
sizeof(
long)) {
108 G_warning(
_(
"Unable to write header for 3D raster map <%s>"),
113 if (!close_new(map)) {
123 if (close(map->
data_fd) != 0) {
133 if (!close_old(map)) {
156 if (!close_cell_new(map)) {
162 if (!close_cell_old(map)) {
190 G_warning(
_(
"Unable to write header for 3D raster map <%s>"),
void G_warning(const char *,...) __attribute__((format(printf
int Rast3d_flush_all_tiles(RASTER3D_Map *)
int Rast3d_write_header(RASTER3D_Map *, int, int, double, double, double, double, double, double, int, int, int, double, double, double, int, int, int, int, int, int, int, int, int, int, int, char *, int, int)
void Rast3d_filename(char *, const char *, const char *, const char *)
void Rast3d_free(void *)
Same as free (ptr).
int Rast3d_flush_index(RASTER3D_Map *)
int Rast3d_dispose_cache(RASTER3D_Map *)
int Rast3d_write_history(const char *, struct History *)
write raster3d History file
int Rast3d_write_cats(const char *, struct Categories *)
Writes the categories stored in the cats structure into the categories file for map name in the curre...
int Rast3d_write_ints(int, int, const int *, int)
int Rast3d_range_write(RASTER3D_Map *)
Writes the range which is stored in the range structure of map. (This function is invoked automatical...
int Rast3d_long_encode(long *, unsigned char *, int)
int Rast3d_remove_color(const char *)
Removes the primary and/or secondary color file.
void Rast_free_cats(struct Categories *)
Free category structure memory.
void Rast_init_cats(const char *, struct Categories *)
Initialize category structure.
void Rast_short_history(const char *, const char *, struct History *)
Initialize history structure.
int Rast_command_history(struct History *)
Save command line to raster history structure.
int Rast3d_close(RASTER3D_Map *map)
Close 3D raster map files.
#define RASTER3D_CELL_ELEMENT
#define RASTER3D_WRITE_DATA
Raster history info (metadata)