GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <grass/G3d.h>
#include <grass/gis.h>
Go to the source code of this file.
Macros | |
#define | G3D_LONG_LENGTH sizeof (long) |
#define | G3D_XDR_INT_LENGTH 4 |
#define | G3D_XDR_DOUBLE_LENGTH 8 |
#define | G3D_XDR_FLOAT_LENGTH 4 |
#define | G3D_IS_CORRECT_TYPE(t) (((t) == FCELL_TYPE) || ((t) == DCELL_TYPE)) |
#define | G3D_WRITE_DATA 1 |
#define | G3D_READ_DATA 0 |
#define | G3D_VALID_OPERATION(o) (((o) == G3D_WRITE_DATA) || ((o) == G3D_READ_DATA)) |
#define | G3D_MIN(a, b) ((a) <= (b) ? (a) : (b)) |
#define | G3D_MAX(a, b) ((a) >= (b) ? (a) : (b)) |
#define | G3D_HAS_INDEX 1 |
#define | G3D_NO_INDEX 0 |
#define | G3D_USE_XDR 1 |
#define | G3D_NO_XDR 0 |
#define | G3D_VALID_XDR_OPTION(o) (((o) == G3D_USE_XDR) || ((o) == G3D_NO_XDR)) |
#define | G3D_REGION_NORTH "North" |
#define | G3D_REGION_SOUTH "South" |
#define | G3D_REGION_EAST "East" |
#define | G3D_REGION_WEST "West" |
#define | G3D_REGION_TOP "Top" |
#define | G3D_REGION_BOTTOM "Bottom" |
#define | G3D_REGION_ROWS "nofRows" |
#define | G3D_REGION_COLS "nofCols" |
#define | G3D_REGION_DEPTHS "nofDepths" |
#define | G3D_REGION_PROJ "Proj" |
#define | G3D_REGION_ZONE "Zone" |
#define | G3D_REGION_EWRES "e-w resol" |
#define | G3D_REGION_NSRES "n-s resol" |
#define | G3D_REGION_TBRES "t-b resol" |
Functions | |
void | G3d_fatalError (const char *,...) |
This function prints the error message msg, and terminates the program with an error status. More... | |
void | G3d_fatalError_noargs (const char *) |
Variables | |
void * | tmpCompress |
int | tmpCompressLength |
void * | xdr |
int | xdrLength |
int | g3d_do_compression |
int | g3d_do_lzw_compression |
int | g3d_do_rle_compression |
int | g3d_precision |
int | g3d_cache_default |
int | g3d_cache_max |
int | g3d_file_type |
int | g3d_tile_dimension [3] |
void(* | g3d_error_fun )(const char *) |
char * | g3d_unit_default |
G3D_Region | g3d_window |
#define G3D_HAS_INDEX 1 |
Definition at line 28 of file G3d_intern.h.
Referenced by G3d_openCellNew().
#define G3D_IS_CORRECT_TYPE | ( | t | ) | (((t) == FCELL_TYPE) || ((t) == DCELL_TYPE)) |
Definition at line 17 of file G3d_intern.h.
Referenced by G3d_externLength(), and G3d_length().
#define G3D_LONG_LENGTH sizeof (long) |
Definition at line 11 of file G3d_intern.h.
Referenced by G3d_longDecode(), and G3d_longEncode().
Definition at line 26 of file G3d_intern.h.
Referenced by G3d__computeCacheSize(), G3d_fillHeader(), and G3d_initFpXdr().
Definition at line 25 of file G3d_intern.h.
Referenced by G3d__computeCacheSize(), G3d_fillHeader(), G3d_getBlock(), G3d_longEncode(), and G3d_openCellNew().
#define G3D_NO_INDEX 0 |
Definition at line 29 of file G3d_intern.h.
#define G3D_NO_XDR 0 |
Definition at line 32 of file G3d_intern.h.
Referenced by G3d_copyFromXdr(), G3d_copyToXdr(), G3d_readDoubles(), G3d_readInts(), G3d_writeDoubles(), and G3d_writeInts().
#define G3D_READ_DATA 0 |
Definition at line 20 of file G3d_intern.h.
Referenced by G3d_disposeCache(), G3d_flushAllTiles(), G3d_initCache(), G3d_openCellOld(), and G3d_printHeader().
#define G3D_REGION_BOTTOM "Bottom" |
Definition at line 76 of file G3d_intern.h.
#define G3D_REGION_COLS "nofCols" |
Definition at line 78 of file G3d_intern.h.
#define G3D_REGION_DEPTHS "nofDepths" |
Definition at line 79 of file G3d_intern.h.
#define G3D_REGION_EAST "East" |
Definition at line 73 of file G3d_intern.h.
#define G3D_REGION_EWRES "e-w resol" |
Definition at line 82 of file G3d_intern.h.
#define G3D_REGION_NORTH "North" |
Definition at line 71 of file G3d_intern.h.
#define G3D_REGION_NSRES "n-s resol" |
Definition at line 83 of file G3d_intern.h.
#define G3D_REGION_PROJ "Proj" |
Definition at line 80 of file G3d_intern.h.
#define G3D_REGION_ROWS "nofRows" |
Definition at line 77 of file G3d_intern.h.
#define G3D_REGION_SOUTH "South" |
Definition at line 72 of file G3d_intern.h.
#define G3D_REGION_TBRES "t-b resol" |
Definition at line 84 of file G3d_intern.h.
#define G3D_REGION_TOP "Top" |
Definition at line 75 of file G3d_intern.h.
#define G3D_REGION_WEST "West" |
Definition at line 74 of file G3d_intern.h.
#define G3D_REGION_ZONE "Zone" |
Definition at line 81 of file G3d_intern.h.
#define G3D_USE_XDR 1 |
Definition at line 31 of file G3d_intern.h.
Referenced by G3d_initCopyFromXdr(), G3d_initCopyToXdr(), and G3d_openCellNew().
#define G3D_VALID_OPERATION | ( | o | ) | (((o) == G3D_WRITE_DATA) || ((o) == G3D_READ_DATA)) |
Definition at line 22 of file G3d_intern.h.
Referenced by G3d_fillHeader().
#define G3D_VALID_XDR_OPTION | ( | o | ) | (((o) == G3D_USE_XDR) || ((o) == G3D_NO_XDR)) |
Definition at line 34 of file G3d_intern.h.
Referenced by G3d_fillHeader().
#define G3D_WRITE_DATA 1 |
Definition at line 19 of file G3d_intern.h.
Referenced by G3d_closeCell(), G3d_initIndex(), G3d_openCellNew(), G3d_printHeader(), and G3d_range_load().
#define G3D_XDR_DOUBLE_LENGTH 8 |
Definition at line 14 of file G3d_intern.h.
Referenced by G3d_externLength(), G3d_readDoubles(), G3d_writeDoubles(), and if().
#define G3D_XDR_FLOAT_LENGTH 4 |
Definition at line 15 of file G3d_intern.h.
Referenced by G3d_externLength().
#define G3D_XDR_INT_LENGTH 4 |
Definition at line 13 of file G3d_intern.h.
Referenced by G3d_readInts(), and G3d_writeInts().
void G3d_fatalError | ( | const char * | msg, |
... | |||
) |
This function prints the error message msg, and terminates the program with an error status.
\return | void |
Definition at line 58 of file g3derror.c.
References G_fatal_error().
Referenced by G3d__computeCacheSize(), G3d_adjustRegion(), G3d_adjustRegionRes(), G3d_autolockOff(), G3d_autolockOn(), G3d_beginCycle(), G3d_cache_hash_load_name(), G3d_cache_hash_remove_name(), G3d_cacheSizeEncode(), G3d_changePrecision(), G3d_changeType(), G3d_compareFiles(), G3d_externLength(), G3d_fillHeader(), G3d_flushTileCube(), G3d_flushTilesInCube(), G3d_getBlockNocache(), G3d_getDoubleRegion(), G3d_getFloatRegion(), G3d_initDefaults(), G3d_length(), G3d_location2coord(), G3d_lockTile(), G3d_longDecode(), G3d_makeAlignedVolumeFile(), G3d_minUnlocked(), G3d_openCellOld(), G3d_readDoubles(), G3d_readInts(), G3d_readTile(), G3d_retile(), G3d_setCacheLimit(), G3d_setCacheSize(), G3d_setCompressionMode(), G3d_setFileType(), G3d_setTileDimension(), G3d_unlockAll(), G3d_unlockTile(), G3d_writeAscii(), G3d_writeDoubles(), G3d_writeInts(), G3d_writeTile(), G_fpcompress_readXdrNums(), G_rle_count_only(), G_rle_decode(), G_rle_encode(), N_read_rast3d_to_array_3d(), and N_write_array_3d_to_rast3d().
void G3d_fatalError_noargs | ( | const char * | ) |
Definition at line 70 of file g3derror.c.
References G_fatal_error().
Referenced by G3d_initDefaults().
int g3d_cache_default |
Definition at line 58 of file g3ddefaults.c.
Referenced by G3d__computeCacheSize(), G3d_fillHeader(), G3d_getCacheSize(), G3d_initDefaults(), and G3d_setCacheSize().
int g3d_cache_max |
Definition at line 59 of file g3ddefaults.c.
Referenced by G3d_fillHeader(), G3d_getCacheLimit(), G3d_initDefaults(), and G3d_setCacheLimit().
int g3d_do_compression |
Definition at line 54 of file g3ddefaults.c.
Referenced by G3d_getCompressionMode(), G3d_initDefaults(), G3d_openCellNew(), and G3d_setCompressionMode().
int g3d_do_lzw_compression |
Definition at line 55 of file g3ddefaults.c.
Referenced by G3d_getCompressionMode(), G3d_initDefaults(), G3d_openCellNew(), and G3d_setCompressionMode().
int g3d_do_rle_compression |
Definition at line 56 of file g3ddefaults.c.
Referenced by G3d_getCompressionMode(), G3d_initDefaults(), G3d_openCellNew(), and G3d_setCompressionMode().
void(* g3d_error_fun)(const char *) |
Definition at line 63 of file g3ddefaults.c.
Referenced by G3d_initDefaults(), and G3d_setErrorFun().
int g3d_file_type |
Definition at line 60 of file g3ddefaults.c.
Referenced by G3d_getFileType(), G3d_initDefaults(), G3d_openCellNew(), and G3d_setFileType().
int g3d_precision |
Definition at line 57 of file g3ddefaults.c.
Referenced by G3d_getCompressionMode(), G3d_initDefaults(), G3d_openCellNew(), and G3d_setCompressionMode().
int g3d_tile_dimension[3] |
Definition at line 61 of file g3ddefaults.c.
Referenced by G3d_getTileDimension(), G3d_initDefaults(), G3d_openCellNew(), and G3d_setTileDimension().
char* g3d_unit_default |
Definition at line 64 of file g3ddefaults.c.
Referenced by G3d_initDefaults(), G3d_openCellNew(), and G3d_setUnit().
G3D_Region g3d_window |
Definition at line 8 of file g3dwindow.c.
Referenced by G3d_getWindow(), G3d_setWindow(), and G3d_windowPtr().
void* tmpCompress |
Definition at line 12 of file g3d/header.c.
Referenced by G3d_fillHeader().
int tmpCompressLength |
Definition at line 13 of file g3d/header.c.
Referenced by G3d_fillHeader().
void* xdr |
Definition at line 14 of file g3d/header.c.
Referenced by G3d_initCopyFromXdr(), G3d_initCopyToXdr(), and G3d_initFpXdr().
int xdrLength |
Definition at line 15 of file g3d/header.c.
Referenced by G3d_initFpXdr().