|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-5f4f7ad06c
|

Go to the source code of this file.
Functions | |
| void | Rast3d_set_compression_mode (int doCompress, int precision) |
| set compression mode | |
| void | Rast3d_get_compression_mode (int *doCompress, int *precision) |
| Gets compression mode. | |
| void | Rast3d_set_cache_size (int nTiles) |
| set cache size | |
| int | Rast3d_get_cache_size (void) |
| get cache size | |
| void | Rast3d_set_cache_limit (int nBytes) |
| Set cache limit. | |
| int | Rast3d_get_cache_limit (void) |
| Get cache limit. | |
| void | Rast3d_set_file_type (int type) |
| set G3d file type | |
| int | Rast3d_get_file_type (void) |
| get G3d file type | |
| void | Rast3d_set_tile_dimension (int tileX, int tileY, int tileZ) |
| set Tile Dimension | |
| void | Rast3d_get_tile_dimension (int *tileX, int *tileY, int *tileZ) |
| get Tile Dimension | |
| void | Rast3d_set_error_fun (void(*fun)(const char *)) |
| set error function | |
| void | Rast3d_init_defaults (void) |
| Initializes the default values described in RASTER3D Defaults. Applications have to use this function only if they need to query the default values before the first file (either old or new) has been opened. | |
Variables | |
| int | g3d_version = 2 |
| int | g3d_do_compression = -10 |
| int | g3d_precision = -10 |
| int | g3d_cache_default = -10 |
| int | g3d_cache_max = -10 |
| int | g3d_file_type = -10 |
| int | g3d_tile_dimension [3] |
| void(* | g3d_error_fun )(const char *) = NULL |
| char * | g3d_unit_default = NULL |
| int | g3d_vertical_unit_default = -1 |
| #define RASTER3D_CACHE_SIZE_DEFAULT 1000 |
Definition at line 12 of file defaults.c.
| #define RASTER3D_CACHE_SIZE_ENV_VAR "RASTER3D_DEFAULT_CACHE_SIZE" |
Definition at line 47 of file defaults.c.
| #define RASTER3D_CACHE_SIZE_MAX_DEFAULT 16777216 |
Definition at line 13 of file defaults.c.
| #define RASTER3D_CACHE_SIZE_MAX_ENV_VAR "RASTER3D_MAX_CACHE_SIZE" |
Definition at line 48 of file defaults.c.
| #define RASTER3D_COMPRESSION_DEFAULT RASTER3D_COMPRESSION |
Definition at line 10 of file defaults.c.
| #define RASTER3D_COMPRESSION_ENV_VAR_NO "RASTER3D_NO_COMPRESSION" |
Name of the environmental variable specifying that compression should not be used.
Definition at line 42 of file defaults.c.
| #define RASTER3D_COMPRESSION_ENV_VAR_YES "RASTER3D_USE_COMPRESSION" |
Name of the environmental variable specifying that compression should be used.
Setting the environmental variable to any value will cause that the compression will be used (set when calling Rast3d_init_defaults for the first time).
This environmental variable takes precedence before the environmental variable specified by RASTER3D_COMPRESSION_ENV_VAR_NO.
Definition at line 35 of file defaults.c.
| #define RASTER3D_DEFAULT_WINDOW3D "RASTER3D_DEFAULT_WINDOW3D" |
Definition at line 60 of file defaults.c.
| #define RASTER3D_ERROR_FUN_DEFAULT Rast3d_skip_error |
Definition at line 18 of file defaults.c.
| #define RASTER3D_FATAL_ERROR_ENV_VAR "RASTER3D_USE_FATAL_ERROR" |
Definition at line 57 of file defaults.c.
| #define RASTER3D_FILE_DOUBLE_ENV_VAR "RASTER3D_WRITE_DOUBLE" |
Definition at line 51 of file defaults.c.
| #define RASTER3D_FILE_FLOAT_ENV_VAR "RASTER3D_WRITE_FLOAT" |
Definition at line 50 of file defaults.c.
| #define RASTER3D_FILE_TYPE_DEFAULT DCELL_TYPE |
Definition at line 14 of file defaults.c.
| #define RASTER3D_NO_DEFAULT -10 |
Definition at line 8 of file defaults.c.
| #define RASTER3D_PRECISION_DEFAULT RASTER3D_MAX_PRECISION |
Definition at line 11 of file defaults.c.
| #define RASTER3D_PRECISION_ENV_VAR "RASTER3D_PRECISION" |
Definition at line 44 of file defaults.c.
| #define RASTER3D_PRECISION_ENV_VAR_MAX "RASTER3D_MAX_PRECISION" |
Definition at line 45 of file defaults.c.
| #define RASTER3D_PRINT_ERROR_ENV_VAR "RASTER3D_USE_PRINT_ERROR" |
Definition at line 58 of file defaults.c.
| #define RASTER3D_TILE_DIM_X_ENV_VAR "RASTER3D_TILE_DIMENSION_X" |
Definition at line 53 of file defaults.c.
| #define RASTER3D_TILE_DIM_Y_ENV_VAR "RASTER3D_TILE_DIMENSION_Y" |
Definition at line 54 of file defaults.c.
| #define RASTER3D_TILE_DIM_Z_ENV_VAR "RASTER3D_TILE_DIMENSION_Z" |
Definition at line 55 of file defaults.c.
| #define RASTER3D_TILE_X_DEFAULT 16 |
Definition at line 15 of file defaults.c.
| #define RASTER3D_TILE_Y_DEFAULT 16 |
Definition at line 16 of file defaults.c.
| #define RASTER3D_TILE_Z_DEFAULT 8 |
Definition at line 17 of file defaults.c.
| #define RASTER3D_UNIT_DEFAULT "none" |
Definition at line 19 of file defaults.c.
Definition at line 20 of file defaults.c.
Gets compression mode.
| doCompress | pointer to the integer where the compression mode will be stored |
| precision | pointer to the integer where the precision mode will be stored |
Definition at line 125 of file defaults.c.
References g3d_do_compression, g3d_precision, and NULL.
Referenced by Rast3d_change_precision(), Rast3d_get_standard3d_params(), and Rast3d_open_new_param().
get G3d file type
Definition at line 212 of file defaults.c.
References g3d_file_type.
Referenced by Rast3d_change_precision(), Rast3d_change_type(), Rast3d_get_standard3d_params(), Rast3d_make_aligned_volume_file(), Rast3d_open_new_opt_tile_size(), Rast3d_open_new_param(), and Rast3d_retile().
get Tile Dimension
| tileX | |
| tileY | |
| tileZ |
Definition at line 252 of file defaults.c.
References g3d_tile_dimension.
Referenced by Rast3d_change_precision(), Rast3d_change_type(), Rast3d_get_standard3d_params(), Rast3d_open_new_opt_tile_size(), Rast3d_open_new_param(), and Rast3d_retile().
Initializes the default values described in RASTER3D Defaults. Applications have to use this function only if they need to query the default values before the first file (either old or new) has been opened.
Definition at line 282 of file defaults.c.
References DCELL_TYPE, FCELL_TYPE, g3d_cache_default, g3d_cache_max, g3d_do_compression, g3d_error_fun, g3d_file_type, g3d_precision, g3d_tile_dimension, g3d_unit_default, g3d_vertical_unit_default, G_store(), NULL, Rast3d_fatal_error(), Rast3d_fatal_error_noargs(), Rast3d_get_window_params(), Rast3d_print_error(), Rast3d_read_window(), Rast3d_set_window(), RASTER3D_CACHE_SIZE_DEFAULT, RASTER3D_CACHE_SIZE_ENV_VAR, RASTER3D_CACHE_SIZE_MAX_DEFAULT, RASTER3D_CACHE_SIZE_MAX_ENV_VAR, RASTER3D_COMPRESSION, RASTER3D_COMPRESSION_DEFAULT, RASTER3D_COMPRESSION_ENV_VAR_NO, RASTER3D_COMPRESSION_ENV_VAR_YES, RASTER3D_DEFAULT_WINDOW3D, RASTER3D_ERROR_FUN_DEFAULT, RASTER3D_FATAL_ERROR_ENV_VAR, RASTER3D_FILE_DOUBLE_ENV_VAR, RASTER3D_FILE_FLOAT_ENV_VAR, RASTER3D_FILE_TYPE_DEFAULT, RASTER3D_MAX_PRECISION, RASTER3D_NO_COMPRESSION, RASTER3D_NO_DEFAULT, RASTER3D_PRECISION_DEFAULT, RASTER3D_PRECISION_ENV_VAR, RASTER3D_PRECISION_ENV_VAR_MAX, RASTER3D_PRINT_ERROR_ENV_VAR, RASTER3D_TILE_DIM_X_ENV_VAR, RASTER3D_TILE_DIM_Y_ENV_VAR, RASTER3D_TILE_DIM_Z_ENV_VAR, RASTER3D_TILE_X_DEFAULT, RASTER3D_TILE_Y_DEFAULT, RASTER3D_TILE_Z_DEFAULT, RASTER3D_UNIT_DEFAULT, RASTER3D_VERTICAL_UNIT_DEFAULT, and U_UNDEFINED.
Referenced by GVL_libinit(), Rast3d_get_standard3d_params(), Rast3d_open_cell_new(), Rast3d_open_cell_old_no_header(), Rast3d_open_new_opt_tile_size(), and Rast3d_open_new_param().
Set cache limit.
| nBytes |
Definition at line 169 of file defaults.c.
References g3d_cache_max, and Rast3d_fatal_error().
set cache size
| nTiles |
Definition at line 141 of file defaults.c.
References g3d_cache_default, and Rast3d_fatal_error().
set compression mode
doCompress should be one of RASTER3D_NO_COMPRESSION and RASTER3D_COMPRESSION. precision should be either RASTER3D_MAX_PRECISION or a positive integer.
Calls Rast3d_fatal_error() if a wrong parameter value is provided.
| doCompress | specifies if a compression should be performed |
| precision | a precision of compression |
Definition at line 93 of file defaults.c.
References g3d_do_compression, g3d_precision, Rast3d_fatal_error(), RASTER3D_COMPRESSION, and RASTER3D_NO_COMPRESSION.
Referenced by Rast3d_change_precision(), and Rast3d_open_new_param().
set error function
| fun |
Definition at line 267 of file defaults.c.
References g3d_error_fun.
set G3d file type
| type |
Definition at line 197 of file defaults.c.
References DCELL_TYPE, FCELL_TYPE, g3d_file_type, and Rast3d_fatal_error().
Referenced by Rast3d_change_precision(), Rast3d_change_type(), Rast3d_open_new_opt_tile_size(), Rast3d_open_new_param(), and Rast3d_retile().
set Tile Dimension
| tileX | |
| tileY | |
| tileZ |
Definition at line 227 of file defaults.c.
References g3d_tile_dimension, and Rast3d_fatal_error().
Referenced by Rast3d_change_precision(), Rast3d_change_type(), Rast3d_open_new_opt_tile_size(), Rast3d_open_new_param(), and Rast3d_retile().
| int g3d_cache_default = -10 |
Definition at line 67 of file defaults.c.
Referenced by Rast3d__compute_cache_size(), Rast3d_fill_header(), Rast3d_get_cache_size(), Rast3d_init_defaults(), and Rast3d_set_cache_size().
| int g3d_cache_max = -10 |
Definition at line 68 of file defaults.c.
Referenced by Rast3d_fill_header(), Rast3d_get_cache_limit(), Rast3d_init_defaults(), and Rast3d_set_cache_limit().
| int g3d_do_compression = -10 |
Definition at line 65 of file defaults.c.
Referenced by Rast3d_get_compression_mode(), Rast3d_init_defaults(), Rast3d_open_cell_new(), and Rast3d_set_compression_mode().
Definition at line 72 of file defaults.c.
Referenced by Rast3d_init_defaults(), and Rast3d_set_error_fun().
| int g3d_file_type = -10 |
Definition at line 69 of file defaults.c.
Referenced by Rast3d_get_file_type(), Rast3d_init_defaults(), Rast3d_open_cell_new(), and Rast3d_set_file_type().
| int g3d_precision = -10 |
Definition at line 66 of file defaults.c.
Referenced by Rast3d_get_compression_mode(), Rast3d_init_defaults(), Rast3d_open_cell_new(), and Rast3d_set_compression_mode().
| int g3d_tile_dimension[3] |
Definition at line 70 of file defaults.c.
Referenced by Rast3d_get_tile_dimension(), Rast3d_init_defaults(), Rast3d_open_cell_new(), and Rast3d_set_tile_dimension().
Definition at line 73 of file defaults.c.
Referenced by Rast3d_init_defaults(), and Rast3d_open_cell_new().
| int g3d_version = 2 |
Definition at line 64 of file defaults.c.
| int g3d_vertical_unit_default = -1 |
Definition at line 74 of file defaults.c.
Referenced by Rast3d_init_defaults(), and Rast3d_open_cell_new().