SAGA API
v9.6
|
#include <geo_tools.h>
Public Member Functions | |
CSG_Projection (void) | |
virtual | ~CSG_Projection (void) |
void | Destroy (void) |
CSG_Projection (const CSG_Projection &Projection) | |
bool | Create (const CSG_Projection &Projection) |
CSG_Projection & | operator= (const CSG_Projection &Projection) |
CSG_Projection (const char *Definition) | |
bool | Create (const char *Definition) |
CSG_Projection & | operator= (const char *Definition) |
CSG_Projection (const wchar_t *Definition) | |
bool | Create (const wchar_t *Definition) |
CSG_Projection & | operator= (const wchar_t *Definition) |
CSG_Projection (const CSG_String &Definition) | |
bool | Create (const CSG_String &Definition) |
CSG_Projection & | operator= (const CSG_String &Definition) |
CSG_Projection (int Code, const SG_Char *Authority=NULL) | |
bool | Create (int Code, const SG_Char *Authority=NULL) |
CSG_Projection & | operator= (int Code) |
bool | Assign (const CSG_Projection &Projection) |
bool | Assign (const CSG_String &Definition) |
bool | Assign (int Code, const SG_Char *Authority=NULL) |
bool | is_Okay (void) const |
bool | is_Equal (const CSG_Projection &Projection) const |
bool | operator== (const CSG_Projection &Projection) const |
bool | operator!= (const CSG_Projection &Projection) const |
bool | Set_GCS_WGS84 (void) |
bool | Set_UTM_WGS84 (int Zone, bool bSouth=false) |
bool | Load (const CSG_String &File) |
bool | Save (const CSG_String &File, ESG_CRS_Format Format=ESG_CRS_Format::WKT) const |
bool | Load (CSG_File &Stream) |
bool | Save (CSG_File &Stream, ESG_CRS_Format Format=ESG_CRS_Format::WKT) const |
bool | Load (const CSG_MetaData &Projection) |
bool | Save (CSG_MetaData &Projection) const |
CSG_String | Get_Description (bool bDetails=false) const |
const CSG_String & | Get_Name (void) const |
const CSG_String & | Get_WKT (void) const |
CSG_String | Get_WKT1 (void) const |
const CSG_String & | Get_WKT2 (void) const |
const CSG_String & | Get_PROJ (void) const |
CSG_String | Get_JSON (void) const |
CSG_String | Get_ESRI (void) const |
CSG_String | Get_XML (void) const |
const CSG_String & | Get_Authority (void) const |
int | Get_Code (void) const |
const CSG_String & | Get_Proj4 (void) const |
int | Get_Authority_ID (void) const |
int | Get_EPSG (void) const |
bool | is_Geographic (void) const |
bool | is_Geodetic (void) const |
bool | is_Geocentric (void) const |
bool | is_Projection (void) const |
ESG_CRS_Type | Get_Type (void) const |
CSG_String | Get_Type_Identifier (void) const |
CSG_String | Get_Type_Name (void) const |
ESG_Projection_Unit | Get_Unit (void) const |
CSG_String | Get_Unit_Identifier (void) const |
CSG_String | Get_Unit_Name (void) const |
double | Get_Unit_To_Meter (void) const |
Static Public Member Functions | |
static const CSG_Projection & | Get_GCS_WGS84 (void) |
static CSG_Projection | Get_UTM_WGS84 (int Zone, bool bSouth=false) |
Friends | |
class | CSG_Projections |
Definition at line 823 of file geo_tools.h.
CSG_Projection::CSG_Projection | ( | void | ) |
Definition at line 82 of file projections.cpp.
References Destroy().
|
virtual |
Definition at line 87 of file projections.cpp.
CSG_Projection::CSG_Projection | ( | const CSG_Projection & | Projection | ) |
Definition at line 91 of file projections.cpp.
References Create().
CSG_Projection::CSG_Projection | ( | const char * | Definition | ) |
Definition at line 111 of file projections.cpp.
References Create().
CSG_Projection::CSG_Projection | ( | const wchar_t * | Definition | ) |
Definition at line 129 of file projections.cpp.
References Create().
CSG_Projection::CSG_Projection | ( | const CSG_String & | Definition | ) |
Definition at line 147 of file projections.cpp.
References Create().
CSG_Projection::CSG_Projection | ( | int | Code, |
const SG_Char * | Authority = NULL |
||
) |
Definition at line 185 of file projections.cpp.
References Create().
|
inline |
Definition at line 853 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 854 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 855 of file geo_tools.h.
References CSG_Projections::Create().
bool CSG_Projection::Create | ( | const char * | Definition | ) |
Definition at line 116 of file projections.cpp.
bool CSG_Projection::Create | ( | const CSG_Projection & | Projection | ) |
Definition at line 96 of file projections.cpp.
Referenced by CSG_Shapes::Assign(), CSG_PointCloud::Assign(), Create(), CSG_Grid::Create(), CSG_Grids::Create(), CSG_Projection(), CSG_Grid_OGIS_Converter::from_WKBinary(), CSG_Parameters_CRSPicker::Get_CRS(), Load(), Set_GCS_WGS84(), CSG_Tool_Interactive_Base::Set_Projection(), Set_UTM_WGS84(), and SG_Get_Projected().
bool CSG_Projection::Create | ( | const CSG_String & | Definition | ) |
Definition at line 152 of file projections.cpp.
References CSG_String::Clear(), Destroy(), CSG_Strings::Get_Count(), CSG_Projections::Get_CRS_Type(), CSG_String::is_Empty(), CSG_String::Make_Upper(), CSG_Projections::Parse(), SG_String_Tokenize(), and WKT1.
bool CSG_Projection::Create | ( | const wchar_t * | Definition | ) |
Definition at line 134 of file projections.cpp.
bool CSG_Projection::Create | ( | int | Code, |
const SG_Char * | Authority = NULL |
||
) |
Definition at line 190 of file projections.cpp.
References Create(), CSG_String::Format(), CSG_Projections::Get_Projection(), gSG_Projections, and SG_T.
void CSG_Projection::Destroy | ( | void | ) |
Definition at line 201 of file projections.cpp.
References _TL, and CSG_String::Clear().
Referenced by Create(), CSG_Projection(), and CSG_Tool::Get_Projection().
|
inline |
Definition at line 888 of file geo_tools.h.
|
inline |
Definition at line 892 of file geo_tools.h.
|
inline |
Definition at line 889 of file geo_tools.h.
CSG_String CSG_Projection::Get_Description | ( | bool | bDetails = false | ) | const |
Definition at line 347 of file projections.cpp.
References _TL, ADD_CONT, ADD_HEAD, ADD_INFO, ADD_PROP, CSG_String::c_str(), CSG_MetaData::Cmp_Name(), CSG_MetaData::Cmp_Property(), CSG_String::CmpNoCase(), CSG_String::Format(), CSG_MetaData::Get_Children_Count(), CSG_MetaData::Get_Content(), CSG_MetaData::Get_Property(), Get_WKT2(), CSG_String::is_Empty(), is_Geographic(), is_Okay(), is_Projection(), CSG_String::Printf(), CSG_String::Replace(), SG_T, and WKT1.
|
inline |
Definition at line 893 of file geo_tools.h.
Referenced by CSG_Grid_OGIS_Converter::to_WKBinary().
CSG_String CSG_Projection::Get_ESRI | ( | void | ) | const |
Definition at line 330 of file projections.cpp.
References CSG_Projections::Parse().
Referenced by CSG_Projections::Parse(), and Save().
|
static |
Definition at line 597 of file projections.cpp.
References is_Okay(), and Set_GCS_WGS84().
CSG_String CSG_Projection::Get_JSON | ( | void | ) | const |
Definition at line 324 of file projections.cpp.
References CSG_Projections::Parse().
Referenced by Save().
|
inline |
Definition at line 879 of file geo_tools.h.
|
inline |
Definition at line 884 of file geo_tools.h.
Referenced by CSG_Parameters_CRSPicker::Get_CRS(), CSG_Projections::Parse(), and Save().
|
inline |
Definition at line 891 of file geo_tools.h.
|
inline |
Definition at line 900 of file geo_tools.h.
Referenced by is_Equal(), and CSG_Data_Object::Save_MetaData().
CSG_String CSG_Projection::Get_Type_Identifier | ( | void | ) | const |
Definition at line 562 of file projections.cpp.
References CSG_Projections::Get_CRS_Type_Identifier().
CSG_String CSG_Projection::Get_Type_Name | ( | void | ) | const |
Definition at line 568 of file projections.cpp.
References CSG_Projections::Get_CRS_Type_Name().
|
inline |
Definition at line 904 of file geo_tools.h.
CSG_String CSG_Projection::Get_Unit_Identifier | ( | void | ) | const |
Definition at line 574 of file projections.cpp.
References CSG_Projections::Get_Unit_Identifier().
CSG_String CSG_Projection::Get_Unit_Name | ( | void | ) | const |
Definition at line 580 of file projections.cpp.
References CSG_Projections::Get_Unit_Name().
double CSG_Projection::Get_Unit_To_Meter | ( | void | ) | const |
Definition at line 586 of file projections.cpp.
References CSG_Projections::Get_Unit_To_Meter().
|
static |
Definition at line 616 of file projections.cpp.
References Set_UTM_WGS84().
|
inline |
Definition at line 881 of file geo_tools.h.
Referenced by CSG_Grid_File_Info::Save_AUX_XML(), and SG_Get_Projected().
CSG_String CSG_Projection::Get_WKT1 | ( | void | ) | const |
Definition at line 318 of file projections.cpp.
References CSG_Projections::Parse().
Referenced by is_Equal(), CSG_Projections::Parse(), and Save().
|
inline |
Definition at line 883 of file geo_tools.h.
Referenced by Get_Description(), CSG_Projections::Parse(), and Save().
CSG_String CSG_Projection::Get_XML | ( | void | ) | const |
Definition at line 336 of file projections.cpp.
bool CSG_Projection::is_Equal | ( | const CSG_Projection & | Projection | ) | const |
Definition at line 469 of file projections.cpp.
References CMP_CONTENT, CMP_PARAMETER, CMP_PROPERTY, CMP_TOWGS84, CSG_String::CmpNoCase(), Get_Type(), Get_WKT1(), CSG_String::is_Empty(), is_Geographic(), is_Okay(), is_Projection(), and WKT1.
|
inline |
Definition at line 897 of file geo_tools.h.
|
inline |
Definition at line 896 of file geo_tools.h.
|
inline |
Definition at line 895 of file geo_tools.h.
Referenced by Get_Description(), and is_Equal().
|
inline |
Definition at line 857 of file geo_tools.h.
References Geographic.
Referenced by CSG_Grids::Add_Grid(), CSG_Grid::Assign(), Get_Description(), Get_GCS_WGS84(), CSG_Projections::Get_Preference(), CSG_Tool::Get_Projection(), CSG_Projections::Get_Projection(), is_Equal(), Save(), CSG_Grid_File_Info::Save_AUX_XML(), SG_Get_Projected(), and SG_Grid_Get_Geographic_Coordinates().
|
inline |
Definition at line 898 of file geo_tools.h.
Referenced by Get_Description(), and is_Equal().
bool CSG_Projection::Load | ( | const CSG_MetaData & | Projection | ) |
Definition at line 282 of file projections.cpp.
References Create().
bool CSG_Projection::Load | ( | const CSG_String & | File | ) |
Definition at line 219 of file projections.cpp.
References SG_FILE_R.
Referenced by CSG_Data_Object::Load_MetaData().
bool CSG_Projection::Load | ( | CSG_File & | Stream | ) |
Definition at line 245 of file projections.cpp.
References Create(), CSG_File::is_Reading(), CSG_File::Length(), and CSG_File::Read().
|
inline |
Definition at line 860 of file geo_tools.h.
|
inline |
Definition at line 839 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 835 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 847 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 843 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 851 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 859 of file geo_tools.h.
bool CSG_Projection::Save | ( | const CSG_String & | File, |
ESG_CRS_Format | Format = ESG_CRS_Format::WKT |
||
) | const |
Definition at line 227 of file projections.cpp.
References is_Okay(), SG_File_Delete(), SG_File_Exists(), and SG_FILE_W.
Referenced by CSG_PointCloud::Save(), and CSG_Data_Object::Save_MetaData().
bool CSG_Projection::Save | ( | CSG_File & | Stream, |
ESG_CRS_Format | Format = ESG_CRS_Format::WKT |
||
) | const |
Definition at line 258 of file projections.cpp.
References CSG_String::c_str(), Get_ESRI(), Get_JSON(), Get_PROJ(), Get_WKT1(), Get_WKT2(), CSG_String::is_Empty(), is_Okay(), CSG_File::is_Writing(), CSG_String::Length(), CSG_String::Printf(), and CSG_File::Write().
bool CSG_Projection::Save | ( | CSG_MetaData & | Projection | ) | const |
Definition at line 301 of file projections.cpp.
References CSG_MetaData::Add_Child(), CSG_MetaData::Add_Property(), and CSG_MetaData::Del_Children().
bool CSG_Projection::Set_GCS_WGS84 | ( | void | ) |
bool CSG_Projection::Set_UTM_WGS84 | ( | int | Zone, |
bool | bSouth = false |
||
) |
Definition at line 626 of file projections.cpp.
References Create(), and WKT1.
Referenced by Get_UTM_WGS84().
|
friend |
Definition at line 825 of file geo_tools.h.