24 Rast3d_error(
"Rast3d_tile2xdrTile: error in Rast3d_init_copy_to_xdr");
30 Rast3d_error(
"Rast3d_tile2xdrTile: error in Rast3d_copy_to_xdr");
37 for (z = 0; z < depths; z++) {
38 for (y = 0; y < rows; y++) {
41 "Rast3d_tile2xdrTile: error in Rast3d_copy_to_xdr");
54 for (z = 0; z < depths; z++) {
57 "Rast3d_tile2xdrTile: error in Rast3d_copy_to_xdr");
66 Rast3d_error(
"Rast3d_tile2xdrTile: error in Rast3d_copy_to_xdr");
78 Rast3d_error(
"Rast3d_writeTileUncompressed: can't write file.");
93 "Rast3d_fpcompress_write_xdr_nums");
156 if (!Rast3d_tile2xdrTile(map,
tile, rows, cols, depths,
xRedundant,
158 Rast3d_error(
"Rast3d_write_tile: error in Rast3d_tile2xdrTile");
163 if (!Rast3d_writeTileUncompressed(map,
nofNum)) {
165 "Rast3d_write_tile: error in Rast3d_writeTileUncompressed");
170 if (!Rast3d_writeTileCompressed(map,
nofNum)) {
172 "Rast3d_write_tile: error in Rast3d_writeTileCompressed");
209 Rast3d_error(
"Rast3d_write_tile_float: error in Rast3d_write_tile");
233 Rast3d_error(
"Rast3d_write_tile_double: error in Rast3d_write_tile");
264 Rast3d_error(
"Rast3d_flush_tile: error in Rast3d_get_tile_ptr");
269 Rast3d_error(
"Rast3d_flush_tile: error in Rast3d_write_tile");
274 Rast3d_error(
"Rast3d_flush_tile: error in Rast3d__remove_tile");
309 "Rast3d_flush_tile_cube: function invalid in non-cache mode");
317 "Rast3d_flush_tile_cube: error in Rast3d_flush_tile");
356 "Rast3d_flush_tiles_in_cube: function invalid in non-cache mode");
369 "Rast3d_flush_tiles_in_cube: coordinate out of Range");
372 "Rast3d_flush_tiles_in_cube: coordinate out of Range");
378 "Rast3d_flush_tiles_in_cube: coordinate out of Range");
381 "Rast3d_flush_tiles_in_cube: coordinate out of Range");
387 "Rast3d_flush_tiles_in_cube: coordinate out of Range");
390 "Rast3d_flush_tiles_in_cube: coordinate out of Range");
414 "Rast3d_flush_tiles_in_cube: error in Rast3d_flush_tile_cube");
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
#define G_incr_void_ptr(ptr, size)
void * Rast3d_get_tile_ptr(RASTER3D_Map *, int)
This function returns a pointer to a tile which contains the data for the tile with index tileIndex....
void Rast3d_get_coords_map(RASTER3D_Map *, int *, int *, int *)
Returns the size of the region of map in cells.
int Rast3d_tile2tile_index(RASTER3D_Map *, int, int, int)
Returns tile-index corresponding to tile-coordinates (xTile, yTile, zTile).
void Rast3d_range_update_from_tile(RASTER3D_Map *, const void *, int, int, int, int, int, int, int, int)
void Rast3d_coord2tile_coord(RASTER3D_Map *, int, int, int, int *, int *, int *, int *, int *, int *)
Converts cell-coordinates (x, y, z) into tile-coordinates (xTile, yTile, zTile) and the coordinate of...
int Rast3d_copy_to_xdr(const void *, int)
int Rast3d_compute_clipped_tile_dimensions(RASTER3D_Map *, int, int *, int *, int *, int *, int *, int *)
Computes the dimensions of the tile when clipped to fit the region of map. The clipped dimensions are...
void Rast3d_error(const char *,...) __attribute__((format(printf
int Rast3d__remove_tile(RASTER3D_Map *, int)
void Rast3d_fatal_error(const char *,...) __attribute__((format(printf
int Rast3d_init_copy_to_xdr(RASTER3D_Map *, int)
int Rast3d_fpcompress_write_xdr_nums(int, char *, int, int, char *, int)
#define UNUSED
A macro for an attribute, if attached to a variable, indicating that the variable is not used.
#define RASTER3D_NO_COMPRESSION
SYMBOL * err(FILE *fp, SYMBOL *s, char *msg)
int Rast3d_write_tile_double(RASTER3D_Map *map, int tileIndex, const void *tile)
Is equivalent to Rast3d_write_tile (map, tileIndex, tile, DCELL_TYPE).
int Rast3d_flush_tile_cube(RASTER3D_Map *map, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax)
Writes the tiles with tile-coordinates contained in the axis-parallel cube with vertices (xMin,...
int Rast3d_write_tile_float(RASTER3D_Map *map, int tileIndex, const void *tile)
Is equivalent to Rast3d_write_tile (map, tileIndex, tile, FCELL_TYPE).
int Rast3d_flush_tile(RASTER3D_Map *map, int tileIndex)
Writes the tile with tileIndex to the file corresponding to map and removes the tile from the cache (...
int Rast3d_write_tile(RASTER3D_Map *map, int tileIndex, const void *tile, int type)
Writes tile with index tileIndex to the file corresponding to map. It is assumed that the cells in ti...
int Rast3d_flush_tiles_in_cube(RASTER3D_Map *map, int xMin, int yMin, int zMin, int xMax, int yMax, int zMax)
Writes those tiles for which every cell has coordinate contained in the axis-parallel cube defined by...