SAGA API
v9.6
|
#include <grid.h>
Public Member Functions | |
CSG_Grid_File_Info (void) | |
CSG_Grid_File_Info (const CSG_Grid_File_Info &Info) | |
bool | Create (const CSG_Grid_File_Info &Info) |
CSG_Grid_File_Info (const CSG_String &File) | |
bool | Create (const CSG_String &File) |
CSG_Grid_File_Info (CSG_File &Stream) | |
bool | Create (CSG_File &Stream) |
CSG_Grid_File_Info (const CSG_Grid &Grid) | |
bool | Create (const CSG_Grid &Grid) |
bool | Save (const CSG_String &File, bool bBinary=true) |
bool | Save (const CSG_File &Stream, bool bBinary=true) |
bool | Save_AUX_XML (const CSG_String &File) |
bool | Save_AUX_XML (CSG_File &Stream) |
Static Public Member Functions | |
static bool | Save (const CSG_String &File, const CSG_Grid &Grid, bool bBinary=true) |
static bool | Save (const CSG_File &Stream, const CSG_Grid &Grid, bool bBinary=true) |
Public Attributes | |
bool | m_bFlip |
bool | m_bSwapBytes |
sLong | m_Offset |
double | m_zScale |
double | m_zOffset |
double | m_NoData [2] |
TSG_Data_Type | m_Type |
CSG_String | m_Name |
CSG_String | m_Description |
CSG_String | m_Unit |
CSG_String | m_Data_File |
CSG_Grid_System | m_System |
CSG_Projection | m_Projection |
CSG_Grid_File_Info::CSG_Grid_File_Info | ( | void | ) |
Definition at line 1018 of file grid_io.cpp.
CSG_Grid_File_Info::CSG_Grid_File_Info | ( | const CSG_Grid_File_Info & | Info | ) |
Definition at line 1042 of file grid_io.cpp.
References Create().
CSG_Grid_File_Info::CSG_Grid_File_Info | ( | const CSG_String & | File | ) |
Definition at line 1094 of file grid_io.cpp.
References Create().
CSG_Grid_File_Info::CSG_Grid_File_Info | ( | CSG_File & | Stream | ) |
Definition at line 1143 of file grid_io.cpp.
References Create().
CSG_Grid_File_Info::CSG_Grid_File_Info | ( | const CSG_Grid & | Grid | ) |
Definition at line 1068 of file grid_io.cpp.
References Create().
bool CSG_Grid_File_Info::Create | ( | const CSG_Grid & | Grid | ) |
Definition at line 1073 of file grid_io.cpp.
References CSG_String::Clear(), CSG_Data_Object::Get_Description(), CSG_Data_Object::Get_Name(), CSG_Data_Object::Get_NoData_Value(), CSG_Grid::Get_Offset(), CSG_Data_Object::Get_Projection(), CSG_Grid::Get_Scaling(), CSG_Grid::Get_System(), CSG_Grid::Get_Type(), CSG_Grid::Get_Unit(), m_bFlip, m_bSwapBytes, m_Data_File, m_Description, m_Name, m_NoData, m_Offset, m_Projection, m_System, m_Type, m_Unit, m_zOffset, and m_zScale.
bool CSG_Grid_File_Info::Create | ( | const CSG_Grid_File_Info & | Info | ) |
Definition at line 1047 of file grid_io.cpp.
References m_bFlip, m_bSwapBytes, m_Data_File, m_Description, m_Name, m_NoData, m_Offset, m_Projection, m_System, m_Type, m_Unit, m_zOffset, and m_zScale.
Referenced by Create(), and CSG_Grid_File_Info().
bool CSG_Grid_File_Info::Create | ( | const CSG_String & | File | ) |
Definition at line 1099 of file grid_io.cpp.
References Create(), CSG_File_Zip::Get_File(), CSG_File_Zip::Get_File_Count(), CSG_File_Zip::Get_File_Name(), CSG_File::is_Reading(), SG_File_Cmp_Extension(), SG_File_Get_Name(), and SG_FILE_R.
bool CSG_Grid_File_Info::Create | ( | CSG_File & | Stream | ) |
Definition at line 1148 of file grid_io.cpp.
References CSG_String::AfterFirst(), CSG_String::asDouble(), CSG_String::asInt(), CSG_Grid_System::Assign(), CSG_String::Find(), CSG_File::Get_File_Name(), GRID_FILE_KEY_BYTEORDER_BIG, GRID_FILE_KEY_CELLCOUNT_X, GRID_FILE_KEY_CELLCOUNT_Y, GRID_FILE_KEY_CELLSIZE, GRID_FILE_KEY_DATAFILE_NAME, GRID_FILE_KEY_DATAFILE_OFFSET, GRID_FILE_KEY_DATAFORMAT, GRID_FILE_KEY_DESCRIPTION, GRID_FILE_KEY_NAME, GRID_FILE_KEY_NODATA_VALUE, GRID_FILE_KEY_POSITION_XMIN, GRID_FILE_KEY_POSITION_YMIN, GRID_FILE_KEY_TOPTOBOTTOM, GRID_FILE_KEY_TRUE, GRID_FILE_KEY_UNITNAME, GRID_FILE_KEY_Z_FACTOR, GRID_FILE_KEY_Z_OFFSET, gSG_Data_Type_Identifier, CSG_String::is_Empty(), CSG_File::is_EOF(), CSG_File::is_Reading(), m_bFlip, m_bSwapBytes, m_Data_File, m_Description, m_Name, m_NoData, m_Offset, m_System, m_Type, m_Unit, m_zOffset, m_zScale, SG_DATATYPE_Undefined, SG_File_Get_Path(), and SG_File_Make_Path().
bool CSG_Grid_File_Info::Save | ( | const CSG_File & | Stream, |
bool | bBinary = true |
||
) |
Definition at line 1258 of file grid_io.cpp.
References CSG_String::c_str(), CSG_String::Format(), CSG_Grid_System::Get_Cellsize(), CSG_Grid_System::Get_NX(), CSG_Grid_System::Get_NY(), CSG_Grid_System::Get_Precision(), CSG_Grid_System::Get_XMin(), CSG_Grid_System::Get_YMin(), GRID_FILE_KEY_BYTEORDER_BIG, GRID_FILE_KEY_CELLCOUNT_X, GRID_FILE_KEY_CELLCOUNT_Y, GRID_FILE_KEY_CELLSIZE, GRID_FILE_KEY_DATAFILE_OFFSET, GRID_FILE_KEY_DATAFORMAT, GRID_FILE_KEY_DESCRIPTION, GRID_FILE_KEY_FALSE, GRID_FILE_KEY_NAME, GRID_FILE_KEY_NODATA_VALUE, GRID_FILE_KEY_POSITION_XMIN, GRID_FILE_KEY_POSITION_YMIN, GRID_FILE_KEY_TOPTOBOTTOM, GRID_FILE_KEY_TRUE, GRID_FILE_KEY_UNITNAME, GRID_FILE_KEY_Z_FACTOR, GRID_FILE_KEY_Z_OFFSET, GRID_FILE_PRINT, gSG_Data_Type_Identifier, CSG_File::is_Writing(), m_Description, m_Name, m_NoData, m_System, m_Type, m_Unit, m_zOffset, and m_zScale.
|
static |
Definition at line 1299 of file grid_io.cpp.
References Save().
bool CSG_Grid_File_Info::Save | ( | const CSG_String & | File, |
bool | bBinary = true |
||
) |
|
static |
Definition at line 1291 of file grid_io.cpp.
References Save().
bool CSG_Grid_File_Info::Save_AUX_XML | ( | const CSG_String & | File | ) |
Definition at line 1312 of file grid_io.cpp.
References CSG_Projection::is_Okay(), m_Projection, CSG_File::Open(), and SG_FILE_W.
bool CSG_Grid_File_Info::Save_AUX_XML | ( | CSG_File & | Stream | ) |
Definition at line 1320 of file grid_io.cpp.
References CSG_Projection::Get_WKT(), CSG_Projection::is_Okay(), CSG_File::is_Writing(), m_Projection, and CSG_File::Write().
bool CSG_Grid_File_Info::m_bSwapBytes |
CSG_String CSG_Grid_File_Info::m_Data_File |
CSG_String CSG_Grid_File_Info::m_Description |
CSG_String CSG_Grid_File_Info::m_Name |
double CSG_Grid_File_Info::m_NoData[2] |
CSG_Projection CSG_Grid_File_Info::m_Projection |
Definition at line 451 of file grid.h.
Referenced by Create(), and Save_AUX_XML().
CSG_Grid_System CSG_Grid_File_Info::m_System |
TSG_Data_Type CSG_Grid_File_Info::m_Type |
CSG_String CSG_Grid_File_Info::m_Unit |
double CSG_Grid_File_Info::m_zOffset |
double CSG_Grid_File_Info::m_zScale |