25 int x, y, z, saveType;
29 int tileX, tileY, tileZ, typeIntern, typeIntern2;
30 int tileXsave, tileYsave, tileZsave, nx, ny, nz;
59 tileSize = tileX * tileY * tileZ;
61 for (z = 0; z < nz; z++)
62 for (y = 0; y < ny; y++)
63 for (
x = 0;
x < nx;
x++) {
67 "Rast3d_change_type: error in Rast3d_read_tile");
74 "Rast3d_change_type: error in Rast3d_write_tile");
void Rast3d_change_type(void *map, const char *nameOut)
Makes a copy of map with name nameOut in which the cells are of type FCELL_TYPE if they are DCELL_TYP...
void Rast3d_copy_values(const void *, int, int, void *, int, int, int)
int Rast3d_file_type_map(RASTER3D_Map *)
Returns the type with which tiles of map are stored on file.
int Rast3d_tile_type_map(RASTER3D_Map *)
Returns the type in which tiles of map are stored in memory.
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...
void Rast3d_get_tile_dimensions_map(RASTER3D_Map *, int *, int *, int *)
Returns the tile dimensions used for map.
void Rast3d_get_tile_dimension(int *, int *, int *)
get Tile Dimension
void Rast3d_get_region_struct_map(RASTER3D_Map *, RASTER3D_Region *)
Returns in region the region of map.
void Rast3d_free_tiles(void *)
Is equivalent to Rast3d_free (tiles);
void Rast3d_set_tile_dimension(int, int, int)
set Tile Dimension
void Rast3d_set_file_type(int)
set G3d file type
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_tile2tile_index(RASTER3D_Map *, int, int, int)
Returns tile-index corresponding to tile-coordinates (xTile, yTile, zTile).
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 ...
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...
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_fatal_error(const char *,...) __attribute__((format(printf
int Rast3d_close(RASTER3D_Map *)
Close 3D raster map files.
#define RASTER3D_USE_CACHE_DEFAULT