8 #define RASTER3D_NO_DEFAULT -10
10 #define RASTER3D_COMPRESSION_DEFAULT RASTER3D_COMPRESSION
11 #define RASTER3D_PRECISION_DEFAULT RASTER3D_MAX_PRECISION
12 #define RASTER3D_CACHE_SIZE_DEFAULT 1000
13 #define RASTER3D_CACHE_SIZE_MAX_DEFAULT 16777216
14 #define RASTER3D_FILE_TYPE_DEFAULT DCELL_TYPE
15 #define RASTER3D_TILE_X_DEFAULT 16
16 #define RASTER3D_TILE_Y_DEFAULT 16
17 #define RASTER3D_TILE_Z_DEFAULT 8
18 #define RASTER3D_ERROR_FUN_DEFAULT Rast3d_skip_error
19 #define RASTER3D_UNIT_DEFAULT "none"
20 #define RASTER3D_VERTICAL_UNIT_DEFAULT U_UNKNOWN
35 #define RASTER3D_COMPRESSION_ENV_VAR_YES "RASTER3D_USE_COMPRESSION"
42 #define RASTER3D_COMPRESSION_ENV_VAR_NO "RASTER3D_NO_COMPRESSION"
44 #define RASTER3D_PRECISION_ENV_VAR "RASTER3D_PRECISION"
45 #define RASTER3D_PRECISION_ENV_VAR_MAX "RASTER3D_MAX_PRECISION"
47 #define RASTER3D_CACHE_SIZE_ENV_VAR "RASTER3D_DEFAULT_CACHE_SIZE"
48 #define RASTER3D_CACHE_SIZE_MAX_ENV_VAR "RASTER3D_MAX_CACHE_SIZE"
50 #define RASTER3D_FILE_FLOAT_ENV_VAR "RASTER3D_WRITE_FLOAT"
51 #define RASTER3D_FILE_DOUBLE_ENV_VAR "RASTER3D_WRITE_DOUBLE"
53 #define RASTER3D_TILE_DIM_X_ENV_VAR "RASTER3D_TILE_DIMENSION_X"
54 #define RASTER3D_TILE_DIM_Y_ENV_VAR "RASTER3D_TILE_DIMENSION_Y"
55 #define RASTER3D_TILE_DIM_Z_ENV_VAR "RASTER3D_TILE_DIMENSION_Z"
57 #define RASTER3D_FATAL_ERROR_ENV_VAR "RASTER3D_USE_FATAL_ERROR"
58 #define RASTER3D_PRINT_ERROR_ENV_VAR "RASTER3D_USE_PRINT_ERROR"
60 #define RASTER3D_DEFAULT_WINDOW3D "RASTER3D_DEFAULT_WINDOW3D"
99 "Rast3d_set_compression_mode: wrong value for doCompress.");
108 "Rast3d_set_compression_mode: wrong value for precision.");
129 if (doCompress !=
NULL)
131 if (precision !=
NULL)
240 "environment variable out of range");
244 "environment variable out of range");
248 "environment variable out of range");
296 static int firstTime = 1;
297 const char *value, *windowName;
330 "Rast3d_init_defaults: precision environment variable "
331 "has invalid value");
336 "Rast3d_init_defaults: value for cache environment "
337 "variable out of range");
367 "variable has invalid value");
371 "environment variable out of range");
385 "variable has invalid value");
389 "environment variable out of range");
403 "environment variable has invalid value");
407 "environment variable out of range");
419 "environment variable has invalid value");
423 "environment variable out of range");
435 "environment variable has invalid value");
439 "environment variable out of range");
468 if (windowName ==
NULL) {
#define RASTER3D_COMPRESSION_ENV_VAR_NO
Name of the environmental variable specifying that compression should not be used.
void Rast3d_set_cache_limit(int nBytes)
Set cache limit.
void Rast3d_set_tile_dimension(int tileX, int tileY, int tileZ)
set Tile Dimension
#define RASTER3D_FATAL_ERROR_ENV_VAR
#define RASTER3D_TILE_Y_DEFAULT
#define RASTER3D_CACHE_SIZE_ENV_VAR
#define RASTER3D_ERROR_FUN_DEFAULT
#define RASTER3D_PRECISION_ENV_VAR_MAX
void Rast3d_set_error_fun(void(*fun)(const char *))
set error function
#define RASTER3D_PRECISION_ENV_VAR
void Rast3d_get_tile_dimension(int *tileX, int *tileY, int *tileZ)
get Tile Dimension
int g3d_tile_dimension[3]
int Rast3d_get_cache_limit(void)
Get cache limit.
#define RASTER3D_CACHE_SIZE_MAX_ENV_VAR
#define RASTER3D_COMPRESSION_DEFAULT
#define RASTER3D_TILE_DIM_Z_ENV_VAR
void(* g3d_error_fun)(const char *)
#define RASTER3D_CACHE_SIZE_DEFAULT
#define RASTER3D_PRINT_ERROR_ENV_VAR
void Rast3d_get_compression_mode(int *doCompress, int *precision)
Gets compression mode.
#define RASTER3D_TILE_DIM_X_ENV_VAR
int Rast3d_get_file_type(void)
get G3d file type
#define RASTER3D_UNIT_DEFAULT
#define RASTER3D_FILE_FLOAT_ENV_VAR
#define RASTER3D_VERTICAL_UNIT_DEFAULT
#define RASTER3D_TILE_X_DEFAULT
#define RASTER3D_COMPRESSION_ENV_VAR_YES
Name of the environmental variable specifying that compression should be used.
void Rast3d_set_file_type(int type)
set G3d file type
#define RASTER3D_NO_DEFAULT
#define RASTER3D_CACHE_SIZE_MAX_DEFAULT
#define RASTER3D_TILE_Z_DEFAULT
void Rast3d_init_defaults(void)
Initializes the default values described in RASTER3D Defaults. Applications have to use this function...
#define RASTER3D_PRECISION_DEFAULT
#define RASTER3D_DEFAULT_WINDOW3D
#define RASTER3D_FILE_DOUBLE_ENV_VAR
#define RASTER3D_FILE_TYPE_DEFAULT
int Rast3d_get_cache_size(void)
get cache size
void Rast3d_set_compression_mode(int doCompress, int precision)
set compression mode
#define RASTER3D_TILE_DIM_Y_ENV_VAR
void Rast3d_set_cache_size(int nTiles)
set cache size
int g3d_vertical_unit_default
char * G_store(const char *)
Copy string to allocated memory.
void Rast3d_fatal_error_noargs(const char *) __attribute__((noreturn))
char * Rast3d_get_window_params(void)
void Rast3d_print_error(const char *)
Prints error message.
int Rast3d_read_window(RASTER3D_Region *, const char *)
Reads window from the file specified by windowName. The name is converted by the rules defined in win...
void Rast3d_set_window(RASTER3D_Region *)
Sets the default window used for every map opened later in the program. Can be used multiple times in...
void Rast3d_fatal_error(const char *,...) __attribute__((format(printf
#define U_UNDEFINED
List of units.
#define RASTER3D_COMPRESSION
#define RASTER3D_MAP_VERSION
#define RASTER3D_MAX_PRECISION
#define RASTER3D_NO_COMPRESSION