![]() |
SAGA API
v9.9
|
#include <grids.h>
Public Member Functions | |
CSG_Grids (void) | |
virtual | ~CSG_Grids (void) |
CSG_Grids (const CSG_Grids &Grids) | |
virtual bool | Create (const CSG_Grids &Grids) |
CSG_Grids (const CSG_Grids *pGrids, bool bCopyData=false) | |
virtual bool | Create (const CSG_Grids *pGrids, bool bCopyData=false) |
CSG_Grids (const char *FileName, bool bLoadData=true) | |
virtual bool | Create (const char *FileName, bool bLoadData=true) |
CSG_Grids (const wchar_t *FileName, bool bLoadData=true) | |
virtual bool | Create (const wchar_t *FileName, bool bLoadData=true) |
CSG_Grids (const CSG_String &FileName, bool bLoadData=true) | |
virtual bool | Create (const CSG_String &FileName, bool bLoadData=true) |
CSG_Grids (const CSG_Grid_System &System, int NZ=0, double zMin=0., TSG_Data_Type Type=SG_DATATYPE_Undefined) | |
virtual bool | Create (const CSG_Grid_System &System, int NZ=0, double zMin=0., TSG_Data_Type Type=SG_DATATYPE_Undefined) |
CSG_Grids (const CSG_Grid_System &System, const CSG_Table &Attributes, int zAttribute=0, TSG_Data_Type Type=SG_DATATYPE_Undefined, bool bCreateGrids=false) | |
virtual bool | Create (const CSG_Grid_System &System, const CSG_Table &Attributes, int zAttribute=0, TSG_Data_Type Type=SG_DATATYPE_Undefined, bool bCreateGrids=false) |
CSG_Grids (int NX, int NY, int NZ=0, double Cellsize=0., double xMin=0., double yMin=0., double zMin=0., TSG_Data_Type Type=SG_DATATYPE_Undefined) | |
virtual bool | Create (int NX, int NY, int NZ=0, double Cellsize=0., double xMin=0., double yMin=0., double zMin=0., TSG_Data_Type Type=SG_DATATYPE_Undefined) |
CSG_Grids (const CSG_Table &Attributes, int zAttribute=0) | |
virtual bool | Create (const CSG_Table &Attributes, int zAttribute=0) |
virtual bool | Destroy (void) |
virtual bool | Load (const CSG_String &File, bool bLoadData=true) |
virtual bool | Save (const CSG_String &File, int Format=0) |
virtual bool | Save (const char *File, int Format=0) |
virtual bool | Save (const wchar_t *File, int Format=0) |
virtual TSG_Data_Object_Type | Get_ObjectType (void) const |
TSG_Data_Type | Get_Type (void) const |
int | Get_nValueBytes (void) const |
int | Get_nLineBytes (void) const |
void | Set_Unit (const CSG_String &Unit) |
const SG_Char * | Get_Unit (void) const |
const CSG_Grid_System & | Get_System (void) const |
virtual const CSG_Rect & | Get_Extent (void) |
int | Get_NX (void) const |
int | Get_NY (void) const |
int | Get_NZ (void) const |
sLong | Get_NCells (void) const |
sLong | Get_Data_Count (void) |
sLong | Get_NoData_Count (void) |
double | Get_Cellsize (void) const |
double | Get_Cellarea (void) const |
const CSG_Rect & | Get_Extent (bool bCells=false) const |
double | Get_XMin (bool bCells=false) const |
double | Get_XMax (bool bCells=false) const |
double | Get_XRange (bool bCells=false) const |
double | Get_YMin (bool bCells=false) const |
double | Get_YMax (bool bCells=false) const |
double | Get_YRange (bool bCells=false) const |
double | Get_ZMin (bool bCells=false) const |
double | Get_ZMax (bool bCells=false) const |
double | Get_ZRange (bool bCells=false) const |
bool | Set_Z_Attribute (int Field, bool bSetNameField=false) |
int | Get_Z_Attribute (void) const |
bool | Set_Z_Name_Field (int Field) |
int | Get_Z_Name_Field (void) const |
bool | Add_Attribute (const char *Name, TSG_Data_Type Type, int Insert=-1) |
bool | Add_Attribute (const wchar_t *Name, TSG_Data_Type Type, int Insert=-1) |
bool | Add_Attribute (const CSG_String &Name, TSG_Data_Type Type, int Insert=-1) |
bool | Del_Attribute (int Field) |
const CSG_Table & | Get_Attributes (void) const |
CSG_Table * | Get_Attributes_Ptr (void) |
CSG_Table_Record & | Get_Attributes (int i) const |
bool | Set_Attribute (int i, int Field, const CSG_String &Value) |
bool | Set_Attribute (int i, const CSG_String &Field, const CSG_String &Value) |
bool | Set_Attribute (int i, const wchar_t *Field, const wchar_t *Value) |
bool | Set_Attribute (int i, const char *Field, const char *Value) |
bool | Set_Attribute (int i, int Field, double Value) |
bool | Set_Attribute (int i, const CSG_String &Field, double Value) |
bool | Set_Attribute (int i, const wchar_t *Field, double Value) |
bool | Set_Attribute (int i, const char *Field, double Value) |
bool | Set_Z (int i, double Value) |
double | Get_Z (int i) const |
bool | Update_Z_Order (void) |
bool | Set_Grid_Count (int Count) |
int | Get_Grid_Count (void) const |
bool | Add_Grid (double Z) |
bool | Add_Grid (double Z, CSG_Grid *pGrid, bool bAttach=false) |
bool | Add_Grid (CSG_Table_Record &Attributes) |
bool | Add_Grid (CSG_Table_Record &Attributes, CSG_Grid *pGrid, bool bAttach=false) |
bool | Del_Grid (int i, bool bDetach=false) |
bool | Del_Grids (bool bDetach=false) |
const CSG_Grid & | Get_Grid (int i) const |
CSG_Grid * | Get_Grid_Ptr (int i) const |
CSG_String | Get_Grid_Name (int i, int Style=0) const |
sLong | Get_Memory_Size (void) const |
void | Set_Scaling (double Scale=1., double Offset=0.) |
double | Get_Scaling (void) const |
double | Get_Offset (void) const |
bool | is_Scaled (void) const |
double | Get_Mean (void) |
double | Get_Min (void) |
double | Get_Max (void) |
double | Get_Range (void) |
double | Get_StdDev (void) |
double | Get_Variance (void) |
double | Get_Quantile (double Quantile, bool bFromHistogram=true) |
double | Get_Percentile (double Percentile, bool bFromHistogram=true) |
const CSG_Simple_Statistics & | Get_Statistics (void) |
bool | Get_Statistics (const CSG_Rect &rWorld, CSG_Simple_Statistics &Statistics, bool bHoldValues=false) const |
const CSG_Histogram & | Get_Histogram (size_t nClasses=0) |
bool | Get_Histogram (const CSG_Rect &rWorld, CSG_Histogram &Histogram, size_t nClasses=0) const |
virtual bool | Set_Max_Samples (sLong Max_Samples) |
virtual bool | is_Valid (void) const |
TSG_Intersection | is_Intersecting (const CSG_Rect &Extent) const |
TSG_Intersection | is_Intersecting (const TSG_Rect &Extent) const |
TSG_Intersection | is_Intersecting (double xMin, double yMin, double xMax, double yMax) const |
bool | is_Compatible (CSG_Grid *pGrid) const |
bool | is_Compatible (CSG_Grids *pGrids) const |
bool | is_Compatible (const CSG_Grid_System &System) const |
bool | is_Compatible (int NX, int NY, double Cellsize, double xMin, double yMin) const |
bool | is_InGrid (int x, int y, int z, bool bCheckNoData=true) const |
bool | is_InGrid_byPos (double x, double y, double z, bool bCheckNoData=true) const |
bool | is_InGrid_byPos (const TSG_Point_3D &p, bool bCheckNoData=true) const |
virtual void | Set_Modified (bool bModified=true) |
virtual bool | is_Modified (void) const |
void | Assign_NoData (void) |
virtual bool | Assign (double Value=0.) |
virtual bool | Assign (CSG_Data_Object *pObject, bool bProgress=false) |
virtual bool | Assign (CSG_Grids *pGrids, CSG_Grid_Resampling Interpolation, bool bProgress=false) |
virtual CSG_Grids & | operator= (const CSG_Grids &Grids) |
virtual CSG_Grids & | operator= (double Value) |
virtual CSG_Grids & | operator+= (double Value) |
virtual CSG_Grids & | Add (double Value) |
virtual CSG_Grids & | operator-= (double Value) |
virtual CSG_Grids & | Subtract (double Value) |
virtual CSG_Grids & | operator*= (double Value) |
virtual CSG_Grids & | Multiply (double Value) |
virtual CSG_Grids & | operator/= (double Value) |
virtual CSG_Grids & | Divide (double Value) |
virtual double | operator() (int x, int y, int z) const |
virtual CSG_Grid & | operator[] (int i) |
virtual bool | Set_NoData_Value_Range (double loValue, double hiValue) |
virtual bool | is_NoData (int x, int y, int z) const |
virtual bool | is_NoData (sLong i) const |
virtual void | Set_NoData (int x, int y, int z) |
virtual void | Set_NoData (sLong i) |
double | Get_Value (double x, double y, double z, CSG_Grid_Resampling Resampling=CSG_Grid_Resampling::Bicubic_2, CSG_Grid_Resampling ZResampling=CSG_Grid_Resampling::Undefined) const |
double | Get_Value (const TSG_Point_3D &p, CSG_Grid_Resampling Resampling=CSG_Grid_Resampling::Bicubic_2, CSG_Grid_Resampling ZResampling=CSG_Grid_Resampling::Undefined) const |
bool | Get_Value (double x, double y, double z, double &Value, CSG_Grid_Resampling Resampling=CSG_Grid_Resampling::Bicubic_2, CSG_Grid_Resampling ZResampling=CSG_Grid_Resampling::Undefined) const |
bool | Get_Value (const TSG_Point_3D &p, double &Value, CSG_Grid_Resampling Resampling=CSG_Grid_Resampling::Bicubic_2, CSG_Grid_Resampling ZResampling=CSG_Grid_Resampling::Undefined) const |
virtual BYTE | asByte (int x, int y, int z, bool bScaled=true) const |
virtual BYTE | asByte (sLong i, bool bScaled=true) const |
virtual char | asChar (int x, int y, int z, bool bScaled=true) const |
virtual char | asChar (sLong i, bool bScaled=true) const |
virtual short | asShort (int x, int y, int z, bool bScaled=true) const |
virtual short | asShort (sLong i, bool bScaled=true) const |
virtual int | asInt (int x, int y, int z, bool bScaled=true) const |
virtual int | asInt (sLong i, bool bScaled=true) const |
virtual sLong | asLong (int x, int y, int z, bool bScaled=true) const |
virtual sLong | asLong (sLong i, bool bScaled=true) const |
virtual float | asFloat (int x, int y, int z, bool bScaled=true) const |
virtual float | asFloat (sLong i, bool bScaled=true) const |
virtual double | asDouble (sLong i, bool bScaled=true) const |
virtual double | asDouble (int x, int y, int z, bool bScaled=true) const |
virtual void | Add_Value (int x, int y, int z, double Value) |
virtual void | Add_Value (sLong i, double Value) |
virtual void | Mul_Value (int x, int y, int z, double Value) |
virtual void | Mul_Value (sLong i, double Value) |
virtual void | Set_Value (sLong i, double Value, bool bScaled=true) |
virtual void | Set_Value (int x, int y, int z, double Value, bool bScaled=true) |
bool | Set_Index (bool bOn=true) |
sLong | Get_Sorted (sLong Position, bool bDown=true, bool bCheckNoData=true) |
bool | Get_Sorted (sLong Position, sLong &i, bool bDown=true, bool bCheckNoData=true) |
bool | Get_Sorted (sLong Position, int &x, int &y, int &z, bool bDown=true, bool bCheckNoData=true) |
![]() | |
CSG_Data_Object (void) | |
virtual | ~CSG_Data_Object (void) |
int | Get_RefID (void) const |
Returns the object's reference id (unique). More... | |
int | Get_Managed (void) const |
bool | Reload (void) |
If there is an associated file data can be reloaded with this command. More... | |
bool | Delete (void) |
Deletes all files associated with this data object if possible. Works only with native SAGA files. Returns true on success. More... | |
void | Set_File_Name (const CSG_String &FileName) |
const SG_Char * | Get_File_Name (bool bNative=true) const |
int | Get_File_Type (void) const |
bool | is_File_Native (void) const |
void | Set_Name (const CSG_String &Name) |
void | Set_Name (const char *Name) |
void | Set_Name (const wchar_t *Name) |
void | Fmt_Name (const char *Format,...) |
void | Fmt_Name (const wchar_t *Format,...) |
const SG_Char * | Get_Name (void) const |
void | Set_Description (const CSG_String &Description) |
const SG_Char * | Get_Description (void) const |
bool | Update (bool bForce=false) |
CSG_Data_Object * | Get_Owner (void) const |
void | Set_Owner (CSG_Data_Object *pOwner) |
CSG_MetaData & | Get_MetaData (void) const |
CSG_MetaData & | Get_MetaData_DB (void) const |
CSG_MetaData & | Get_History (void) |
const CSG_MetaData & | Get_History (void) const |
CSG_Projection & | Get_Projection (void) |
const CSG_Projection & | Get_Projection (void) const |
class CSG_Table * | asTable (bool bPolymorph=false) const |
class CSG_Shapes * | asShapes (bool bPolymorph=false) const |
class CSG_TIN * | asTIN (bool bPolymorph=false) const |
class CSG_PointCloud * | asPointCloud (bool bPolymorph=false) const |
class CSG_Grid * | asGrid (bool bPolymorph=false) const |
class CSG_Grids * | asGrids (bool bPolymorph=false) const |
virtual bool | Set_NoData_Value (double Value) |
double | Get_NoData_Value (bool bUpper=false) const |
bool | is_NoData_Value (double Value) const |
bool | Save_History_to_Model (const CSG_String &File) const |
sLong | Get_Max_Samples (void) const |
Protected Member Functions | |
virtual bool | On_Update (void) |
virtual bool | On_Reload (void) |
virtual bool | On_Delete (void) |
![]() | |
void | Set_File_Name (const CSG_String &FileName, bool bNative) |
void | Set_File_Type (int Type) |
bool | Load_MetaData (const CSG_String &FileName) |
bool | Load_MetaData (CSG_File &Stream) |
bool | Save_MetaData (const CSG_String &FileName) |
bool | Save_MetaData (CSG_File &Stream) |
void | Set_Update_Flag (bool bOn=true) |
bool | Get_Update_Flag (void) |
virtual bool | On_NoData_Changed (void) |
Additional Inherited Members | |
![]() | |
static void | Track (bool Track=true, bool Offset=false) |
Activate/deactivate lifetime tracking (data object construction/destruction). Needs compiler flag WITH_LIFETIME_TRACKER being defined. More... | |
![]() | |
CSG_Data_Object * | m_pOwner |
CSG_Grids is the data object created for handling raster collections.
|
virtual |
CSG_Grids::CSG_Grids | ( | const CSG_Grids & | Grids | ) |
CSG_Grids::CSG_Grids | ( | const CSG_Grids * | pGrids, |
bool | bCopyData = false |
||
) |
CSG_Grids::CSG_Grids | ( | const char * | File, |
bool | bLoadData = true |
||
) |
CSG_Grids::CSG_Grids | ( | const wchar_t * | FileName, |
bool | bLoadData = true |
||
) |
CSG_Grids::CSG_Grids | ( | const CSG_String & | FileName, |
bool | bLoadData = true |
||
) |
CSG_Grids::CSG_Grids | ( | const CSG_Grid_System & | System, |
int | NZ = 0 , |
||
double | zMin = 0. , |
||
TSG_Data_Type | Type = SG_DATATYPE_Undefined |
||
) |
CSG_Grids::CSG_Grids | ( | const CSG_Grid_System & | System, |
const CSG_Table & | Attributes, | ||
int | zAttribute = 0 , |
||
TSG_Data_Type | Type = SG_DATATYPE_Undefined , |
||
bool | bCreateGrids = false |
||
) |
CSG_Grids::CSG_Grids | ( | int | NX, |
int | NY, | ||
int | NZ = 0 , |
||
double | Cellsize = 0. , |
||
double | xMin = 0. , |
||
double | yMin = 0. , |
||
double | zMin = 0. , |
||
TSG_Data_Type | Type = SG_DATATYPE_Undefined |
||
) |
CSG_Grids::CSG_Grids | ( | const CSG_Table & | Attributes, |
int | zAttribute = 0 |
||
) |
|
virtual |
Definition at line 1069 of file grids.cpp.
References CSG_Grid::Add(), and Get_Grid_Count().
Referenced by operator+=().
bool CSG_Grids::Add_Attribute | ( | const char * | Name, |
TSG_Data_Type | Type, | ||
int | Insert = -1 |
||
) |
Definition at line 573 of file grids.cpp.
Referenced by Add_Attribute().
bool CSG_Grids::Add_Attribute | ( | const CSG_String & | Name, |
TSG_Data_Type | Type, | ||
int | Insert = -1 |
||
) |
Definition at line 575 of file grids.cpp.
References CSG_Table::Add_Field().
bool CSG_Grids::Add_Attribute | ( | const wchar_t * | Name, |
TSG_Data_Type | Type, | ||
int | Insert = -1 |
||
) |
Definition at line 574 of file grids.cpp.
References Add_Attribute().
bool CSG_Grids::Add_Grid | ( | CSG_Table_Record & | Attributes | ) |
Definition at line 750 of file grids.cpp.
References CSG_Table::Add_Record(), CSG_Array_Pointer::Get_Array(), Get_NZ(), Get_System(), Get_Type(), is_Valid(), SG_Create_Grid(), SG_FREE_SAFE, and Update_Z_Order().
bool CSG_Grids::Add_Grid | ( | CSG_Table_Record & | Attributes, |
CSG_Grid * | pGrid, | ||
bool | bAttach = false |
||
) |
Definition at line 790 of file grids.cpp.
References CSG_Table::Add_Record(), Create(), CSG_Array_Pointer::Get_Array(), Get_NZ(), CSG_Data_Object::Get_Projection(), is_Compatible(), CSG_Projection::is_Okay(), CSG_Grid::is_Valid(), SG_Create_Grid(), SG_FREE_SAFE, and Update_Z_Order().
bool CSG_Grids::Add_Grid | ( | double | Z | ) |
Definition at line 726 of file grids.cpp.
References CSG_Table::Add_Record(), and CSG_Table::Set_Value().
Referenced by Add_Grid(), Create(), CSG_Parameters_Grid_Target::Get_Grids(), and Set_Grid_Count().
bool CSG_Grids::Add_Grid | ( | double | Z, |
CSG_Grid * | pGrid, | ||
bool | bAttach = false |
||
) |
Definition at line 738 of file grids.cpp.
References Add_Grid(), CSG_Table::Add_Record(), and CSG_Table::Set_Value().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Definition at line 388 of file grids.h.
References SG_ROUND_TO_BYTE.
|
inlinevirtual |
Definition at line 389 of file grids.h.
References SG_ROUND_TO_BYTE.
|
inlinevirtual |
Definition at line 390 of file grids.h.
References SG_ROUND_TO_CHAR.
|
inlinevirtual |
Definition at line 391 of file grids.h.
References SG_ROUND_TO_CHAR.
|
inlinevirtual |
|
inlinevirtual |
Definition at line 402 of file grids.h.
Referenced by CSG_Natural_Breaks::Create(), CSG_Histogram::Create(), Get_Histogram(), Get_Quantile(), Get_Statistics(), and On_Update().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Definition at line 394 of file grids.h.
References SG_ROUND_TO_INT.
|
inlinevirtual |
Definition at line 395 of file grids.h.
References SG_ROUND_TO_INT.
|
inlinevirtual |
Definition at line 396 of file grids.h.
References SG_ROUND_TO_SLONG.
Definition at line 397 of file grids.h.
References SG_ROUND_TO_SLONG.
|
inlinevirtual |
Definition at line 392 of file grids.h.
References SG_ROUND_TO_SHORT.
|
inlinevirtual |
Definition at line 393 of file grids.h.
References SG_ROUND_TO_SHORT.
|
virtual |
Reimplemented from CSG_Data_Object.
Definition at line 998 of file grids.cpp.
References CSG_Data_Object::asGrid(), CSG_Data_Object::asGrids(), Assign(), Get_Grid_Count(), CSG_Data_Object::Get_ObjectType(), NearestNeighbour, SG_DATAOBJECT_TYPE_Grid, SG_DATAOBJECT_TYPE_Grids, and SG_UI_Process_Get_Okay().
|
virtual |
Definition at line 1027 of file grids.cpp.
References Assign(), Get_Grid_Count(), and SG_UI_Process_Get_Okay().
|
virtual |
Definition at line 987 of file grids.cpp.
References CSG_Grid::Assign(), and Get_Grid_Count().
Referenced by Assign(), and operator=().
void CSG_Grids::Assign_NoData | ( | void | ) |
Definition at line 978 of file grids.cpp.
References CSG_Grid::Assign_NoData(), and Get_Grid_Count().
|
virtual |
|
virtual |
Definition at line 383 of file grids.cpp.
References Add_Grid(), CSG_Grid::Create(), CSG_Table::Create(), Destroy(), CSG_Table::Get_Count(), and Set_Z_Attribute().
|
virtual |
Definition at line 360 of file grids.cpp.
References Add_Grid(), Create(), Destroy(), CSG_Grid_System::Get_Cellsize(), CSG_Data_Object::Get_NoData_Value(), and Set_NoData_Value_Range().
|
virtual |
Definition at line 319 of file grids.cpp.
Referenced by Add_Grid(), Create(), CSG_Grids(), CSG_Parameters_Grid_Target::Get_Grids(), On_Reload(), operator=(), and SG_Create_Grids().
|
virtual |
Definition at line 325 of file grids.cpp.
References CSG_MetaData::Add_Children(), Add_Grid(), Create(), CSG_Projection::Create(), CSG_Table::Create(), CSG_MetaData::Del_Children(), Get_Attributes(), Get_Grid_Ptr(), CSG_Data_Object::Get_MetaData_DB(), CSG_Data_Object::Get_NoData_Value(), Get_NZ(), CSG_Data_Object::Get_Projection(), Get_System(), Get_Type(), Get_Z_Attribute(), Get_Z_Name_Field(), is_Valid(), Set_NoData_Value_Range(), Set_Z_Attribute(), and Set_Z_Name_Field().
|
virtual |
|
virtual |
Definition at line 415 of file grids.cpp.
References CSG_Table::Create(), Destroy(), and Set_Z_Attribute().
|
virtual |
|
virtual |
bool CSG_Grids::Del_Attribute | ( | int | Field | ) |
Definition at line 581 of file grids.cpp.
References CSG_Table::Del_Field(), and CSG_Table::Get_Field_Count().
bool CSG_Grids::Del_Grid | ( | int | i, |
bool | bDetach = false |
||
) |
Definition at line 853 of file grids.cpp.
References CSG_Table::Del_Record(), CSG_Array_Pointer::Get_Array(), Get_NZ(), CSG_Data_Object::Set_Owner(), SG_Create_Grid(), and SG_FREE_SAFE.
bool CSG_Grids::Del_Grids | ( | bool | bDetach = false | ) |
Definition at line 891 of file grids.cpp.
References CSG_Table::Del_Records(), CSG_Array_Pointer::Get_Array(), CSG_Data_Object::Get_Owner(), CSG_Array_Pointer::Get_uSize(), CSG_Data_Object::Set_Owner(), SG_Create_Grid(), and SG_FREE_SAFE.
Referenced by CSG_Parameters_Grid_Target::Get_Grids(), and Set_Grid_Count().
|
virtual |
Destroys the data space of the CSG_Grids object.
Reimplemented from CSG_Data_Object.
Definition at line 293 of file grids.cpp.
References CSG_Table::Add_Field(), CSG_Data_Object::Destroy(), CSG_Grid::Destroy(), CSG_Table::Destroy(), CSG_Array_Pointer::Get_Array(), CSG_Array_Pointer::Get_uSize(), SG_DATATYPE_Double, and SG_FREE_SAFE.
Referenced by Create(), Load(), and ~CSG_Grids().
|
virtual |
Definition at line 1117 of file grids.cpp.
References CSG_Grid::Divide(), and Get_Grid_Count().
Referenced by operator/=().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 195 of file grids.h.
References Get_Cellsize().
Referenced by Get_Cellsize(), CSG_Data_Manager::Get_Summary(), and Set_Grid_Count().
sLong CSG_Grids::Get_Data_Count | ( | void | ) |
Definition at line 1493 of file grids.cpp.
References CSG_Simple_Statistics::Get_Count(), and CSG_Data_Object::Update().
Referenced by Get_Quantile().
|
inline |
|
inlinevirtual |
Implements CSG_Data_Object.
Definition at line 186 of file grids.h.
References Get_Extent().
Referenced by Get_Extent(), and Get_Value().
|
inline |
Definition at line 252 of file grids.h.
Referenced by Add(), Assign(), Assign_NoData(), Divide(), Get_Grid_Name(), Multiply(), Set_Max_Samples(), Set_NoData_Value_Range(), Set_Scaling(), Subtract(), CSG_Parameter_Grid_List::Update_Data(), and Update_Z_Order().
CSG_String CSG_Grids::Get_Grid_Name | ( | int | i, |
int | Style = 0 |
||
) | const |
Definition at line 929 of file grids.cpp.
References _TL, Get_Grid_Count(), CSG_Data_Object::Get_Name(), Get_Z(), Get_Z_Name_Field(), CSG_String::is_Empty(), CSG_String::Printf(), SG_Get_String(), SG_GRIDS_NAME_GRID, SG_GRIDS_NAME_INDEX, SG_GRIDS_NAME_OWNER, and SG_GRIDS_NAME_VALUE.
Referenced by Update_Z_Order().
|
inline |
Definition at line 263 of file grids.h.
Referenced by CSG_Parameter_Data_Object::_Serialize(), Create(), Set_Max_Samples(), and CSG_Parameter_Grid_List::Update_Data().
bool CSG_Grids::Get_Histogram | ( | const CSG_Rect & | rWorld, |
CSG_Histogram & | Histogram, | ||
size_t | nClasses = 0 |
||
) | const |
Definition at line 1662 of file grids.cpp.
References asDouble(), CSG_Histogram::Create(), CSG_Data_Object::Get_Max_Samples(), CSG_Simple_Statistics::Get_Maximum(), CSG_Simple_Statistics::Get_Minimum(), Get_NX(), Get_NY(), Get_NZ(), Get_Offset(), Get_Scaling(), Get_Statistics(), Get_System(), CSG_Rect::Get_XMax(), CSG_Rect::Get_XMin(), CSG_Grid_System::Get_xWorld_to_Grid(), CSG_Rect::Get_YMax(), CSG_Rect::Get_YMin(), CSG_Grid_System::Get_yWorld_to_Grid(), CSG_Data_Object::is_NoData_Value(), is_Scaled(), SG_GRID_HISTOGRAM_CLASSES_DEFAULT, and CSG_Histogram::Update().
const CSG_Histogram & CSG_Grids::Get_Histogram | ( | size_t | nClasses = 0 | ) |
Returns the histogram for the whole data set. It is automatically updated if necessary.
Definition at line 1644 of file grids.cpp.
References CSG_Histogram::Create(), CSG_Histogram::Destroy(), CSG_Histogram::Get_Class_Count(), CSG_Simple_Statistics::Get_Count(), CSG_Data_Object::Get_Max_Samples(), CSG_Histogram::Get_Statistics(), SG_GRID_HISTOGRAM_CLASSES_DEFAULT, and CSG_Data_Object::Update().
Referenced by Get_Quantile().
double CSG_Grids::Get_Max | ( | void | ) |
Definition at line 1472 of file grids.cpp.
References CSG_Simple_Statistics::Get_Maximum(), and CSG_Data_Object::Update().
Referenced by Get_Quantile().
double CSG_Grids::Get_Mean | ( | void | ) |
Definition at line 1462 of file grids.cpp.
References CSG_Simple_Statistics::Get_Mean(), and CSG_Data_Object::Update().
|
inline |
Definition at line 266 of file grids.h.
References Get_Memory_Size().
Referenced by Get_Memory_Size().
double CSG_Grids::Get_Min | ( | void | ) |
Definition at line 1467 of file grids.cpp.
References CSG_Simple_Statistics::Get_Minimum(), and CSG_Data_Object::Update().
Referenced by Get_Quantile().
|
inline |
Definition at line 191 of file grids.h.
References Get_NCells().
Referenced by CSG_Natural_Breaks::Create(), CSG_Histogram::Create(), Get_NCells(), Get_NoData_Count(), and On_Update().
sLong CSG_Grids::Get_NoData_Count | ( | void | ) |
Definition at line 1498 of file grids.cpp.
References CSG_Simple_Statistics::Get_Count(), Get_NCells(), and CSG_Data_Object::Update().
|
inline |
Definition at line 174 of file grids.h.
References Get_nValueBytes().
Referenced by Get_nValueBytes().
|
inline |
Definition at line 188 of file grids.h.
References Get_NX().
Referenced by Get_Histogram(), Get_NX(), Get_Statistics(), and CSG_Data_Manager::Get_Summary().
|
inline |
Definition at line 189 of file grids.h.
References Get_NY().
Referenced by Get_Histogram(), Get_NY(), Get_Statistics(), and CSG_Data_Manager::Get_Summary().
|
inline |
Definition at line 190 of file grids.h.
Referenced by CSG_Parameter_Data_Object::_Serialize(), Add_Grid(), Create(), Del_Grid(), Get_Histogram(), Get_Statistics(), CSG_Data_Manager::Get_Summary(), is_Compatible(), Set_Grid_Count(), and Set_Z().
|
inlinevirtual |
Data object type information.
Implements CSG_Data_Object.
Definition at line 166 of file grids.h.
References SG_DATAOBJECT_TYPE_Grids.
|
inline |
Definition at line 274 of file grids.h.
Referenced by Get_Histogram(), Get_Statistics(), and On_Update().
double CSG_Grids::Get_Percentile | ( | double | Percentile, |
bool | bFromHistogram = true |
||
) |
Definition at line 1527 of file grids.cpp.
References Get_Quantile().
double CSG_Grids::Get_Quantile | ( | double | Quantile, |
bool | bFromHistogram = true |
||
) |
Definition at line 1504 of file grids.cpp.
References asDouble(), Get_Data_Count(), Get_Histogram(), Get_Max(), Get_Min(), CSG_Data_Object::Get_NoData_Value(), and Get_Sorted().
Referenced by Get_Percentile().
double CSG_Grids::Get_Range | ( | void | ) |
Definition at line 1477 of file grids.cpp.
References CSG_Simple_Statistics::Get_Range(), and CSG_Data_Object::Update().
|
inline |
Definition at line 273 of file grids.h.
References Get_Scaling().
Referenced by Get_Histogram(), Get_Scaling(), Get_Statistics(), and On_Update().
Definition at line 453 of file grids.h.
Referenced by Get_Quantile().
|
inline |
bool CSG_Grids::Get_Statistics | ( | const CSG_Rect & | rWorld, |
CSG_Simple_Statistics & | Statistics, | ||
bool | bHoldValues = false |
||
) | const |
Calculate statistics for the region specified with rWorld. Returns false, if there is no overlapping. Set bHoldValues to true, if you need to obtain quantiles.
Definition at line 1556 of file grids.cpp.
References asDouble(), CSG_Simple_Statistics::Create(), CSG_Simple_Statistics::Get_Count(), CSG_Data_Object::Get_Max_Samples(), Get_NX(), Get_NY(), Get_NZ(), Get_Offset(), Get_Scaling(), Get_System(), CSG_Rect::Get_XMax(), CSG_Rect::Get_XMin(), CSG_Grid_System::Get_xWorld_to_Grid(), CSG_Rect::Get_YMax(), CSG_Rect::Get_YMin(), CSG_Grid_System::Get_yWorld_to_Grid(), CSG_Data_Object::is_NoData_Value(), and is_Scaled().
const CSG_Simple_Statistics & CSG_Grids::Get_Statistics | ( | void | ) |
Returns the statistics for the whole data set. It is automatically updated if necessary. Statistics give no access to parameters like quantiles that need values to be kept internally. Use Get_Quantile() function instead.
Definition at line 1544 of file grids.cpp.
References CSG_Data_Object::Update().
Referenced by Get_Histogram().
double CSG_Grids::Get_StdDev | ( | void | ) |
Definition at line 1482 of file grids.cpp.
References CSG_Simple_Statistics::Get_StdDev(), and CSG_Data_Object::Update().
|
inline |
Definition at line 184 of file grids.h.
References Get_System().
Referenced by Add_Grid(), Create(), CSG_Parameters_Grid_Target::Get_Grids(), Get_Histogram(), Get_Statistics(), Get_System(), Get_Value(), is_Compatible(), is_Valid(), and Set_Grid_Count().
|
inline |
Definition at line 172 of file grids.h.
References Get_Type().
Referenced by Add_Grid(), Create(), CSG_Parameters_Grid_Target::Get_Grids(), Get_Type(), and is_Compatible().
|
inline |
double CSG_Grids::Get_Value | ( | const TSG_Point_3D & | p, |
CSG_Grid_Resampling | Resampling = CSG_Grid_Resampling::Bicubic_2 , |
||
CSG_Grid_Resampling | ZResampling = CSG_Grid_Resampling::Undefined |
||
) | const |
Definition at line 1135 of file grids.cpp.
References CSG_Data_Object::Get_NoData_Value(), Get_Value(), SSG_Point_3D::x, SSG_Point_3D::y, and SSG_Point_3D::z.
bool CSG_Grids::Get_Value | ( | const TSG_Point_3D & | p, |
double & | Value, | ||
CSG_Grid_Resampling | Resampling = CSG_Grid_Resampling::Bicubic_2 , |
||
CSG_Grid_Resampling | ZResampling = CSG_Grid_Resampling::Undefined |
||
) | const |
Definition at line 1145 of file grids.cpp.
References Get_Value(), SSG_Point_3D::x, SSG_Point_3D::y, and SSG_Point_3D::z.
double CSG_Grids::Get_Value | ( | double | x, |
double | y, | ||
double | z, | ||
CSG_Grid_Resampling | Resampling = CSG_Grid_Resampling::Bicubic_2 , |
||
CSG_Grid_Resampling | ZResampling = CSG_Grid_Resampling::Undefined |
||
) | const |
Definition at line 1140 of file grids.cpp.
References CSG_Data_Object::Get_NoData_Value().
Referenced by Get_Value().
bool CSG_Grids::Get_Value | ( | double | x, |
double | y, | ||
double | z, | ||
double & | Value, | ||
CSG_Grid_Resampling | Resampling = CSG_Grid_Resampling::Bicubic_2 , |
||
CSG_Grid_Resampling | ZResampling = CSG_Grid_Resampling::Undefined |
||
) | const |
Definition at line 1151 of file grids.cpp.
References ADD_TO_SPLINE, CSG_Table::Get_Count(), Get_Extent(), Get_System(), CSG_Spline::Get_Value(), Get_Value(), and NearestNeighbour.
double CSG_Grids::Get_Variance | ( | void | ) |
Definition at line 1487 of file grids.cpp.
References CSG_Simple_Statistics::Get_Variance(), and CSG_Data_Object::Update().
|
inline |
|
inline |
Definition at line 200 of file grids.h.
Referenced by CSG_Data_Manager::Get_Summary().
|
inline |
|
inline |
|
inline |
Definition at line 204 of file grids.h.
Referenced by CSG_Data_Manager::Get_Summary().
|
inline |
|
inline |
Definition at line 243 of file grids.h.
Referenced by Get_Grid_Name().
|
inline |
int CSG_Grids::Get_Z_Name_Field | ( | void | ) | const |
Definition at line 567 of file grids.cpp.
References CSG_Table::Get_Field_Count().
Referenced by Create(), and Get_Grid_Name().
|
inline |
Definition at line 209 of file grids.h.
Referenced by Set_Grid_Count().
|
inline |
|
inline |
bool CSG_Grids::is_Compatible | ( | const CSG_Grid_System & | System | ) | const |
Definition at line 519 of file grids.cpp.
References Get_System().
bool CSG_Grids::is_Compatible | ( | CSG_Grid * | pGrid | ) | const |
Definition at line 509 of file grids.cpp.
References CSG_Grid::Get_System(), CSG_Grid::Get_Type(), and Get_Type().
Referenced by Add_Grid(), and is_Compatible().
bool CSG_Grids::is_Compatible | ( | CSG_Grids * | pGrids | ) | const |
Definition at line 514 of file grids.cpp.
References Get_NZ(), Get_System(), and is_Compatible().
bool CSG_Grids::is_Compatible | ( | int | NX, |
int | NY, | ||
double | Cellsize, | ||
double | xMin, | ||
double | yMin | ||
) | const |
Definition at line 524 of file grids.cpp.
References is_Compatible().
|
inline |
|
inline |
Definition at line 311 of file grids.h.
References is_InGrid_byPos(), SSG_Point_3D::x, SSG_Point_3D::y, and SSG_Point_3D::z.
Referenced by is_InGrid_byPos().
|
inline |
Definition at line 310 of file grids.h.
References CSG_Data_Object::Get_Extent().
|
inline |
Definition at line 300 of file grids.h.
References is_Intersecting().
Referenced by is_Intersecting().
|
inline |
Definition at line 301 of file grids.h.
References is_Intersecting().
Referenced by is_Intersecting().
|
inline |
Definition at line 302 of file grids.h.
References is_Intersecting().
Referenced by is_Intersecting().
|
inlinevirtual |
Reimplemented from CSG_Data_Object.
Definition at line 329 of file grids.h.
References CSG_Data_Object::is_Modified().
|
inlinevirtual |
Definition at line 373 of file grids.h.
References CSG_Data_Object::is_NoData_Value().
Referenced by CSG_Natural_Breaks::Create(), and CSG_Histogram::Create().
|
inlinevirtual |
Definition at line 374 of file grids.h.
References CSG_Data_Object::is_NoData_Value().
|
inline |
Definition at line 275 of file grids.h.
Referenced by Get_Histogram(), Get_Statistics(), and On_Update().
|
virtual |
Implements CSG_Data_Object.
Definition at line 503 of file grids.cpp.
References Get_System().
Referenced by Add_Grid(), Create(), On_Update(), Set_Grid_Count(), and SG_Create_Grids().
|
virtual |
Definition at line 1765 of file grids.cpp.
References _TL, CSG_String::c_str(), Destroy(), CSG_String::Format(), Set_Modified(), CSG_Data_Object::Set_Name(), SG_File_Get_Name(), SG_UI_Msg_Add(), SG_UI_MSG_STYLE_FAILURE, SG_UI_MSG_STYLE_SUCCESS, and SG_UI_Process_Set_Ready().
Referenced by Create().
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Definition at line 1101 of file grids.cpp.
References Get_Grid_Count(), and CSG_Grid::Multiply().
Referenced by operator*=().
|
protectedvirtual |
Implements CSG_Data_Object.
Definition at line 1739 of file grids.cpp.
References CSG_String::Format(), CSG_Data_Object::Get_File_Name(), SG_File_Delete(), and SG_File_Set_Extension().
|
protectedvirtual |
Implements CSG_Data_Object.
Definition at line 1733 of file grids.cpp.
References Create(), and CSG_Data_Object::Get_File_Name().
|
protectedvirtual |
Reimplemented from CSG_Data_Object.
Definition at line 1415 of file grids.cpp.
References asDouble(), CSG_Histogram::Destroy(), CSG_Simple_Statistics::Get_Count(), CSG_Data_Object::Get_Max_Samples(), Get_NCells(), Get_Offset(), Get_Scaling(), CSG_Simple_Statistics::Invalidate(), CSG_Data_Object::is_NoData_Value(), is_Scaled(), is_Valid(), CSG_Simple_Statistics::Set_Count(), and SG_FREE_SAFE.
|
inlinevirtual |
|
virtual |
Definition at line 1096 of file grids.cpp.
References Multiply().
|
virtual |
|
virtual |
Definition at line 1080 of file grids.cpp.
References Subtract().
|
virtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
Implements CSG_Data_Object.
Definition at line 159 of file grids.h.
References Save().
Referenced by Save().
|
virtual |
Implements CSG_Data_Object.
Definition at line 1793 of file grids.cpp.
References _TL, CSG_String::c_str(), CSG_String::Format(), CSG_Data_Object::Get_File_Name(), GRIDS_FILE_FORMAT_Compressed, GRIDS_FILE_FORMAT_GeoTIFF, GRIDS_FILE_FORMAT_Normal, GRIDS_FILE_FORMAT_Undefined, CSG_String::is_Empty(), CSG_Data_Object::Set_File_Name(), Set_Modified(), SG_File_Cmp_Extension(), SG_RUN_TOOL, SG_TOOL_PARAMETER_SET, SG_TOOL_PARAMLIST_ADD, SG_UI_Msg_Add(), SG_UI_MSG_STYLE_FAILURE, SG_UI_MSG_STYLE_SUCCESS, and SG_UI_Process_Set_Ready().
|
inlinevirtual |
Implements CSG_Data_Object.
Definition at line 160 of file grids.h.
References Save().
Referenced by Save().
bool CSG_Grids::Set_Attribute | ( | int | i, |
const char * | Field, | ||
const char * | Value | ||
) |
Definition at line 606 of file grids.cpp.
References CSG_Table::Get_Field(), and Set_Attribute().
bool CSG_Grids::Set_Attribute | ( | int | i, |
const char * | Field, | ||
double | Value | ||
) |
Definition at line 615 of file grids.cpp.
References CSG_Table::Get_Field(), and Set_Attribute().
bool CSG_Grids::Set_Attribute | ( | int | i, |
const CSG_String & | Field, | ||
const CSG_String & | Value | ||
) |
Definition at line 608 of file grids.cpp.
References CSG_Table::Get_Field(), and Set_Attribute().
bool CSG_Grids::Set_Attribute | ( | int | i, |
const CSG_String & | Field, | ||
double | Value | ||
) |
Definition at line 617 of file grids.cpp.
References CSG_Table::Get_Field(), and Set_Attribute().
bool CSG_Grids::Set_Attribute | ( | int | i, |
const wchar_t * | Field, | ||
const wchar_t * | Value | ||
) |
Definition at line 607 of file grids.cpp.
References CSG_Table::Get_Field(), and Set_Attribute().
bool CSG_Grids::Set_Attribute | ( | int | i, |
const wchar_t * | Field, | ||
double | Value | ||
) |
Definition at line 616 of file grids.cpp.
References CSG_Table::Get_Field(), and Set_Attribute().
bool CSG_Grids::Set_Attribute | ( | int | i, |
int | Field, | ||
const CSG_String & | Value | ||
) |
Definition at line 609 of file grids.cpp.
References CSG_Table::Get_Count(), and CSG_Table::Set_Value().
Referenced by Set_Attribute().
bool CSG_Grids::Set_Attribute | ( | int | i, |
int | Field, | ||
double | Value | ||
) |
Definition at line 618 of file grids.cpp.
References CSG_Table::Get_Count(), and CSG_Table::Set_Value().
bool CSG_Grids::Set_Grid_Count | ( | int | Count | ) |
Definition at line 671 of file grids.cpp.
References Add_Grid(), Del_Grids(), CSG_Array_Pointer::Get_Array(), Get_Cellsize(), Get_NZ(), Get_System(), Get_ZMax(), is_Valid(), CSG_Table::Set_Count(), and SG_FREE_SAFE.
|
inline |
Definition at line 441 of file grids.h.
References SG_FREE_SAFE.
|
virtual |
Reimplemented from CSG_Data_Object.
Definition at line 1619 of file grids.cpp.
References Get_Grid_Count(), Get_Grid_Ptr(), and CSG_Data_Object::Set_Max_Samples().
|
inlinevirtual |
Reimplemented from CSG_Data_Object.
Definition at line 317 of file grids.h.
References CSG_Data_Object::Set_Modified(), and CSG_Data_Object::Set_Update_Flag().
|
inlinevirtual |
Definition at line 376 of file grids.h.
References CSG_Data_Object::Get_NoData_Value().
|
inlinevirtual |
Definition at line 377 of file grids.h.
References CSG_Data_Object::Get_NoData_Value().
|
virtual |
Reimplemented from CSG_Data_Object.
Definition at line 456 of file grids.cpp.
References Get_Grid_Count(), and CSG_Data_Object::Set_NoData_Value_Range().
Referenced by Create().
void CSG_Grids::Set_Scaling | ( | double | Scale = 1. , |
double | Offset = 0. |
||
) |
Definition at line 443 of file grids.cpp.
References Get_Grid_Count(), CSG_Grid::Set_Scaling(), and CSG_Data_Object::Set_Update_Flag().
void CSG_Grids::Set_Unit | ( | const CSG_String & | Unit | ) |
Definition at line 437 of file grids.cpp.
References CSG_Grid::Set_Unit().
|
inlinevirtual |
|
inlinevirtual |
bool CSG_Grids::Set_Z | ( | int | i, |
double | Value | ||
) |
Definition at line 624 of file grids.cpp.
References Get_NZ(), and Set_Value().
bool CSG_Grids::Set_Z_Attribute | ( | int | Field, |
bool | bSetNameField = false |
||
) |
Definition at line 537 of file grids.cpp.
References CSG_Table::Get_Field_Count(), and Update_Z_Order().
Referenced by Create().
bool CSG_Grids::Set_Z_Name_Field | ( | int | Field | ) |
Definition at line 555 of file grids.cpp.
References CSG_Table::Get_Field_Count().
Referenced by Create().
|
virtual |
Definition at line 1085 of file grids.cpp.
References Get_Grid_Count(), and CSG_Grid::Subtract().
Referenced by operator-=().
bool CSG_Grids::Update_Z_Order | ( | void | ) |
Definition at line 630 of file grids.cpp.
References CSG_Table::Assign(), CSG_Array_Pointer::Create(), Get_Grid_Count(), Get_Grid_Name(), CSG_Table::Set_Index(), CSG_Data_Object::Set_Name(), and TABLE_INDEX_Ascending.
Referenced by Add_Grid(), and Set_Z_Attribute().