SAGA API
v9.6
|
Go to the source code of this file.
Classes | |
class | CSG_Grid_System |
class | CSG_Grid_File_Info |
class | CSG_Grid |
class | CSG_Grid_Stack |
class | CSG_Grid_Cell_Addressor |
Macros | |
#define | GRID_FILE_KEY_TRUE SG_T("TRUE") |
#define | GRID_FILE_KEY_FALSE SG_T("FALSE") |
#define | SG_GRID_PTR_SAFE_SET_NODATA(g, x, y) { if( g && g->is_InGrid(x, y, false) ) { g->Set_NoData(x, y ); } } |
#define | SG_GRID_PTR_SAFE_SET_VALUE(g, x, y, z) { if( g && g->is_InGrid(x, y, false) ) { g->Set_Value (x, y, z); } } |
#define | SG_GRIDCELLADDR_PARM_SQUARE 0x01 |
#define | SG_GRIDCELLADDR_PARM_CIRCLE 0x02 |
#define | SG_GRIDCELLADDR_PARM_ANNULUS 0x04 |
#define | SG_GRIDCELLADDR_PARM_SECTOR 0x08 |
#define | SG_GRIDCELLADDR_PARM_SIZEDBL 0x10 |
#define | SG_GRIDCELLADDR_PARM_MAPUNIT 0x20 |
#define | SG_GRIDCELLADDR_PARM_WEIGHTING 0x40 |
#define | SG_GRIDCELLADDR_PARM_DEFAULT (SG_GRIDCELLADDR_PARM_SQUARE|SG_GRIDCELLADDR_PARM_CIRCLE) |
Variables | |
const SG_Char | gSG_Grid_File_Key_Names [GRID_FILE_KEY_Count][32] |
Classes for raster data management.
Definition in file grid.h.
#define SG_GRID_PTR_SAFE_SET_NODATA | ( | g, | |
x, | |||
y | |||
) | { if( g && g->is_InGrid(x, y, false) ) { g->Set_NoData(x, y ); } } |
#define SG_GRID_PTR_SAFE_SET_VALUE | ( | g, | |
x, | |||
y, | |||
z | |||
) | { if( g && g->is_InGrid(x, y, false) ) { g->Set_Value (x, y, z); } } |
#define SG_GRIDCELLADDR_PARM_DEFAULT (SG_GRIDCELLADDR_PARM_SQUARE|SG_GRIDCELLADDR_PARM_CIRCLE) |
enum TSG_Grid_File_Format |
enum TSG_Grid_File_Key |
enum TSG_Grid_Operation |
enum TSG_Grid_Resampling |
SAGA_API_DLL_EXPORT CSG_Grid* SG_Create_Grid | ( | const char * | File, |
TSG_Data_Type | Type = SG_DATATYPE_Undefined , |
||
bool | bCached = false , |
||
bool | bLoadData = true |
||
) |
SAGA_API_DLL_EXPORT CSG_Grid* SG_Create_Grid | ( | const CSG_Grid & | Grid | ) |
SAGA_API_DLL_EXPORT CSG_Grid* SG_Create_Grid | ( | const CSG_Grid_System & | System, |
TSG_Data_Type | Type = SG_DATATYPE_Undefined , |
||
bool | bCached = false |
||
) |
SAGA_API_DLL_EXPORT CSG_Grid* SG_Create_Grid | ( | const CSG_String & | File, |
TSG_Data_Type | Type = SG_DATATYPE_Undefined , |
||
bool | bCached = false , |
||
bool | bLoadData = true |
||
) |
SAGA_API_DLL_EXPORT CSG_Grid* SG_Create_Grid | ( | const wchar_t * | File, |
TSG_Data_Type | Type = SG_DATATYPE_Undefined , |
||
bool | bCached = false , |
||
bool | bLoadData = true |
||
) |
SAGA_API_DLL_EXPORT CSG_Grid* SG_Create_Grid | ( | CSG_Grid * | pGrid, |
TSG_Data_Type | Type = SG_DATATYPE_Undefined , |
||
bool | bCached = false |
||
) |
SAGA_API_DLL_EXPORT CSG_Grid* SG_Create_Grid | ( | TSG_Data_Type | Type, |
int | NX, | ||
int | NY, | ||
double | Cellsize = 0.0 , |
||
double | xMin = 0.0 , |
||
double | yMin = 0.0 , |
||
bool | bCached = false |
||
) |
SAGA_API_DLL_EXPORT CSG_Grid* SG_Create_Grid | ( | void | ) |
Safe grid construction
Definition at line 72 of file grid.cpp.
Referenced by CSG_Grids::Add_Grid(), CSG_Grids::Del_Grid(), CSG_Grids::Del_Grids(), CSG_Parameters_Grid_Target::Get_Grid(), and SG_Create_Grid().
SAGA_API_DLL_EXPORT const SG_Char* SG_Grid_Cache_Get_Directory | ( | void | ) |
Get default directory for grid caching
Definition at line 81 of file grid_memory.cpp.
References gSG_Grid_Cache_Directory.
SAGA_API_DLL_EXPORT int SG_Grid_Cache_Get_Mode | ( | void | ) |
Definition at line 110 of file grid_memory.cpp.
References gSG_Grid_Cache_Mode.
SAGA_API_DLL_EXPORT sLong SG_Grid_Cache_Get_Threshold | ( | void | ) |
Definition at line 139 of file grid_memory.cpp.
References gSG_Grid_Cache_Threshold.
SAGA_API_DLL_EXPORT double SG_Grid_Cache_Get_Threshold_MB | ( | void | ) |
Definition at line 145 of file grid_memory.cpp.
References gSG_Grid_Cache_Threshold, and N_MEGABYTE_BYTES.
SAGA_API_DLL_EXPORT void SG_Grid_Cache_Set_Directory | ( | const SG_Char * | Directory | ) |
Set default directory for grid caching
Definition at line 87 of file grid_memory.cpp.
References gSG_Grid_Cache_Directory, and SG_Dir_Exists().
SAGA_API_DLL_EXPORT void SG_Grid_Cache_Set_Mode | ( | int | Mode | ) |
Definition at line 104 of file grid_memory.cpp.
References gSG_Grid_Cache_Mode.
SAGA_API_DLL_EXPORT void SG_Grid_Cache_Set_Threshold | ( | int | nBytes | ) |
Definition at line 124 of file grid_memory.cpp.
References gSG_Grid_Cache_Threshold.
Referenced by SG_Grid_Cache_Set_Threshold_MB().
SAGA_API_DLL_EXPORT void SG_Grid_Cache_Set_Threshold_MB | ( | double | nMegabytes | ) |
Definition at line 133 of file grid_memory.cpp.
References N_MEGABYTE_BYTES, and SG_Grid_Cache_Set_Threshold().
SAGA_API_DLL_EXPORT CSG_String SG_Grid_Get_File_Extension_Default | ( | void | ) |
Definition at line 129 of file grid_io.cpp.
References GRID_FILE_FORMAT_Binary, GRID_FILE_FORMAT_Binary_old, GRID_FILE_FORMAT_Compressed, GRID_FILE_FORMAT_GeoTIFF, and gSG_Grid_File_Format_Default.
SAGA_API_DLL_EXPORT TSG_Grid_File_Format SG_Grid_Get_File_Format_Default | ( | void | ) |
Definition at line 123 of file grid_io.cpp.
References gSG_Grid_File_Format_Default.
SAGA_API_DLL_EXPORT bool SG_Grid_Set_File_Format_Default | ( | int | Format | ) |
Definition at line 106 of file grid_io.cpp.
References GRID_FILE_FORMAT_ASCII, GRID_FILE_FORMAT_Binary, GRID_FILE_FORMAT_Binary_old, GRID_FILE_FORMAT_Compressed, GRID_FILE_FORMAT_GeoTIFF, and gSG_Grid_File_Format_Default.
const SG_Char gSG_Grid_File_Key_Names[GRID_FILE_KEY_Count][32] |