![]() |
SAGA API
v9.7
|
#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) |
CSG_Projection (const CSG_String &WKT2, const CSG_String &PROJ) | |
bool | Create (const CSG_String &WKT2, const CSG_String &PROJ) |
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 826 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 190 of file projections.cpp.
References Create().
CSG_Projection::CSG_Projection | ( | const CSG_String & | WKT2, |
const CSG_String & | PROJ | ||
) |
Definition at line 206 of file projections.cpp.
References Create().
|
inline |
Definition at line 859 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 860 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 861 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(), 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(), Geographic, 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 CSG_String & | WKT2, |
const CSG_String & | PROJ | ||
) |
Definition at line 211 of file projections.cpp.
References CSG_String::Clear(), Create(), CSG_Projections::Get_CRS_Type(), CSG_String::is_Empty(), 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 195 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 235 of file projections.cpp.
References _TL, and CSG_String::Clear().
Referenced by Create(), CSG_Projection(), and CSG_Tool::Get_Projection().
|
inline |
Definition at line 894 of file geo_tools.h.
|
inline |
Definition at line 898 of file geo_tools.h.
|
inline |
Definition at line 895 of file geo_tools.h.
CSG_String CSG_Projection::Get_Description | ( | bool | bDetails = false | ) | const |
Definition at line 383 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_Projections::Get_CRS_Type_Name(), CSG_MetaData::Get_Property(), Get_WKT2(), CSG_String::is_Empty(), is_Geodetic(), is_Geographic(), is_Okay(), is_Projection(), CSG_String::Replace(), SG_T, and WKT1.
|
inline |
Definition at line 899 of file geo_tools.h.
Referenced by CSG_Grid_OGIS_Converter::to_WKBinary().
CSG_String CSG_Projection::Get_ESRI | ( | void | ) | const |
Definition at line 366 of file projections.cpp.
References CSG_Projections::Parse().
Referenced by CSG_Projections::Parse(), and Save().
|
static |
Definition at line 629 of file projections.cpp.
References is_Okay(), and Set_GCS_WGS84().
CSG_String CSG_Projection::Get_JSON | ( | void | ) | const |
Definition at line 360 of file projections.cpp.
References CSG_Projections::Parse().
Referenced by Save().
|
inline |
Definition at line 885 of file geo_tools.h.
|
inline |
Definition at line 890 of file geo_tools.h.
Referenced by CSG_Parameters_CRSPicker::Get_CRS(), CSG_Projections::Parse(), Save(), and SG_Get_Projected().
|
inline |
Definition at line 897 of file geo_tools.h.
|
inline |
Definition at line 906 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 594 of file projections.cpp.
References CSG_Projections::Get_CRS_Type_Identifier().
CSG_String CSG_Projection::Get_Type_Name | ( | void | ) | const |
Definition at line 600 of file projections.cpp.
References CSG_Projections::Get_CRS_Type_Name().
|
inline |
Definition at line 910 of file geo_tools.h.
CSG_String CSG_Projection::Get_Unit_Identifier | ( | void | ) | const |
Definition at line 606 of file projections.cpp.
References CSG_Projections::Get_Unit_Identifier().
CSG_String CSG_Projection::Get_Unit_Name | ( | void | ) | const |
Definition at line 612 of file projections.cpp.
References CSG_Projections::Get_Unit_Name().
double CSG_Projection::Get_Unit_To_Meter | ( | void | ) | const |
Definition at line 618 of file projections.cpp.
References CSG_Projections::Get_Unit_To_Meter().
|
static |
Definition at line 686 of file projections.cpp.
References Set_UTM_WGS84().
|
inline |
Definition at line 887 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 354 of file projections.cpp.
References CSG_Projections::Parse().
Referenced by is_Equal(), CSG_Projections::Parse(), and Save().
|
inline |
Definition at line 889 of file geo_tools.h.
Referenced by Get_Description(), CSG_Projections::Parse(), Save(), and SG_Get_Projected().
CSG_String CSG_Projection::Get_XML | ( | void | ) | const |
Definition at line 372 of file projections.cpp.
bool CSG_Projection::is_Equal | ( | const CSG_Projection & | Projection | ) | const |
Definition at line 501 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_Geodetic(), is_Geographic(), is_Okay(), is_Projection(), and WKT1.
|
inline |
Definition at line 903 of file geo_tools.h.
|
inline |
Definition at line 902 of file geo_tools.h.
Referenced by Get_Description(), and is_Equal().
|
inline |
Definition at line 901 of file geo_tools.h.
Referenced by Get_Description(), and is_Equal().
|
inline |
Definition at line 863 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 904 of file geo_tools.h.
Referenced by Get_Description(), and is_Equal().
bool CSG_Projection::Load | ( | const CSG_MetaData & | Projection | ) |
Definition at line 316 of file projections.cpp.
References Create().
bool CSG_Projection::Load | ( | const CSG_String & | File | ) |
Definition at line 253 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 279 of file projections.cpp.
References Create(), CSG_File::is_Reading(), CSG_File::Length(), and CSG_File::Read().
|
inline |
Definition at line 866 of file geo_tools.h.
|
inline |
Definition at line 842 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 838 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 850 of file geo_tools.h.
References CSG_Projections::Create().
|
inline |
Definition at line 846 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 865 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 261 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 292 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 337 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 | ) |
Definition at line 642 of file projections.cpp.
Referenced by Get_GCS_WGS84().
bool CSG_Projection::Set_UTM_WGS84 | ( | int | Zone, |
bool | bSouth = false |
||
) |
Definition at line 696 of file projections.cpp.
References Create(), and WKT1.
Referenced by Get_UTM_WGS84().
|
friend |
Definition at line 828 of file geo_tools.h.