26 int x, y, z, savePrecision, saveCompression;
31 int tileXsave, tileYsave, tileZsave, tileX, tileY, tileZ, saveType;
58 for (z = 0; z < nz; z++)
59 for (y = 0; y < ny; y++)
60 for (x = 0; x < nx; x++) {
64 (
"Rast3d_change_precision: error in Rast3d_read_tile");
69 (
"Rast3d_change_precision: error in Rast3d_write_tile");
#define RASTER3D_USE_CACHE_DEFAULT
void Rast3d_get_region_struct_map(RASTER3D_Map *, RASTER3D_Region *)
Returns in region the region of map.
void Rast3d_set_tile_dimension(int, int, int)
set Tile Dimension
void Rast3d_get_tile_dimensions_map(RASTER3D_Map *, int *, int *, int *)
Returns the tile dimensions used for map.
int Rast3d_read_tile(RASTER3D_Map *, int, void *, int)
Reads tile with index tileIndex into the tile buffer. The cells are stored with type type which must ...
int Rast3d_close(RASTER3D_Map *)
Close 3D raster map files.
void * Rast3d_open_cell_new(const char *, int, int, RASTER3D_Region *)
Opens new g3d-file with name in the current mapset. Tiles are stored in memory with type which must b...
void Rast3d_free_tiles(void *)
Is equivalent to Rast3d_free (tiles);
void Rast3d_fatal_error(const char *,...) __attribute__((format(printf
void Rast3d_get_compression_mode(int *, int *)
Gets compression mode.
void Rast3d_set_compression_mode(int, int)
set compression mode
int Rast3d_get_file_type(void)
get G3d file type
void * Rast3d_alloc_tiles(RASTER3D_Map *, int)
Is equivalent to Rast3d_alloc_tiles_type (map, nofTiles, Rast3d_file_type_map (map)).
int Rast3d_write_tile(RASTER3D_Map *, int, const void *, int)
Writes tile with index tileIndex to the file corresponding to map. It is assumed that the cells in ti...
void Rast3d_get_tile_dimension(int *, int *, int *)
get Tile Dimension
void Rast3d_get_nof_tiles_map(RASTER3D_Map *, int *, int *, int *)
Returns the dimensions of the tile-cube used to tile the region of map. These numbers include partial...
int Rast3d_tile_type_map(RASTER3D_Map *)
Returns the type in which tiles of map are stored in memory.
void Rast3d_change_precision(void *map, int precision, const char *nameOut)
Makes a copy of map with name nameOut which is written with precision. The source code can be found i...
#define RASTER3D_COMPRESSION
void Rast3d_set_file_type(int)
set G3d file type
int Rast3d_tile2tile_index(RASTER3D_Map *, int, int, int)
Returns tile-index corresponding to tile-coordinates (xTile, yTile, zTile).