Cache Mode Compression Tiles Windows Setting the Units Error Handling
Default G3D_CACHE_SIZE_MAX_DEFAULT. This is currently set to 2meg and can be changed at compilation time of the library.
Environment variable G3D_MAX_CACHE_SIZE.
void
G3d_setCacheLimit (nBytes)
int nBytes;
int
G3d_getCacheLimit ()
Default G3D_CACHE_SIZE_DEFAULT. This is currently set to 1000 and can be changed at compilation time of the library.
Environment variable G3D_DEFAULT_CACHE_SIZE.
void
G3d_setCacheSize (nTiles)
int nTiles;
int
G3d_getCacheSize ()
Default G3D_COMPRESSION_DEFAULT. This is set to G3D_COMPRESSION. This default should not be changed.
Environment variables G3D_USE_COMPRESSION and G3D_NO_COMPRESSION.
See functions G3d_setCompressionMode () and G3d_getCompressionMode ().
Default G3D_USE_LZW_DEFAULT. This is currently set to G3D_NO_LZW and can be changed at compilation time of the library.
Environment variables G3D_USE_LZW and G3D_NO_LZW.
See functions G3d_setCompressionMode () and G3d_getCompressionMode ().
Default G3D_USE_RLE_DEFAULT. This is currently set to G3D_USE_RLE and can be changed at compilation time of the library.
Environment variables G3D_USE_RLE and G3D_NO_RLE.
See functions G3d_setCompressionMode () and G3d_getCompressionMode ().
Default G3D_PRECISION_DEFAULT. This is set to G3D_MAX_PRECISION. This default should not be changed.
Environment variables G3D_PRECISION and G3D_MAX_PRECISION..
void
doCompress should be one of G3D_NO_COMPRESSION and G3D_COMPRESSION,
doLzw should be either G3D_NO_LZW or G3D_USE_LZW,
doRle should be either G3D_NO_RLE or G3D_USE_RLE, and
precision should be either G3D_MAX_PRECISION or a positive integer.
G3d_setCompressionMode (doCompress, doLzw, doRle, precision)
int doCompress, doLzw, doRle, precision;
void
G3d_getCompressionMode (doCompress, doLzw, doRle, precision)
int *doCompress, *doLzw, *doRle, *precision;
Defaults G3D_TILE_X_DEFAULT, G3D_TILE_Y_DEFAULT, and G3D_TILE_Z_DEFAULT. These are currently set to 8 and can be changed at compilation time of the library.
Environment variables G3D_TILE_DIMENSION_X, G3D_TILE_DIMENSION_Y, and G3D_TILE_DIMENSION_Z.
void
G3d_setTileDimension (tileX, tileY, tileZ)
int tileX, tileY, tileZ;
void
G3d_getTileDimension (tileX, tileY, tileZ)
int *tileX, *tileY, *tileZ;
Default G3D_FILE_TYPE_DEFAULT. This is set to G3D_DOUBLE. This default should not be changed.
Environment variables G3D_WRITE_FLOAT and G3D_WRITE_DOUBLE.
void
G3d_setFileType (type)
int type;
int
G3d_getFileType ()
The default 3d window file is WIND3 located in the current mapset.
Possible choices for 3d window files are name which refers to a window file in the 3d window database located at windows3d of the current mapset; or file names which are identified by a leading "/" or "."; or fully qualified names, i.e. file@mapset which refer to window files in the 3d window database of mapset. Note, that names WIND3 and WIND3@mapset do not specify the default window name in the (current) mapset but rather a window file in the window database of the (current) mapset.
Environment variable G3D_DEFAULT_WINDOW3D.
See functions G3d_useWindowParams (), G3d_setWindow (), and G3d_setWindowMap ().
Default "none".
No environment variable.
void
G3d_setUnit (unit)
char *unit;
Default G3d_skipError.
Environment variables G3D_USE_FATAL_ERROR and G3D_USE_PRINT_ERROR.
void
G3d_setErrorFun (fun)
void (*fun)(char *);
The following 3 functions are possible choices for error functions.
void
This function ignores the error.
G3d_skipError (msg)
char (*msg)(char *);
void
This function prints the error message msg to
stderr and returns.
G3d_printError (msg)
char (*msg)(char *);
void
This function prints the error message msg to stderr,
flushes stdout and stderr,
and terminates the program with a segementation fault.
G3d_fatalError (msg)
char (*msg)(char *);