![]() |
SAGA API v9.10
|
#include <geo_tools.h>
Public Member Functions | |
CSG_Projections (void) | |
virtual | ~CSG_Projections (void) |
CSG_Projections (bool LoadCodeList) | |
bool | Create (bool LoadCodeList=true) |
void | Destroy (void) |
bool | Load (const CSG_String &File, bool bAppend=false) |
bool | Save (const CSG_String &File) |
bool | Add (const CSG_Projection &Projection) |
bool | Add (const SG_Char *WKT, const SG_Char *Proj4, const SG_Char *Authority, int Authority_ID) |
sLong | Get_Count (void) const |
CSG_Projection | operator[] (sLong Index) const |
CSG_Projection | Get_Projection (sLong Index) const |
const SG_Char * | Get_Projection (int Code, const SG_Char *Authority=NULL) const |
bool | Get_Projection (CSG_Projection &Projection, int Code, const SG_Char *Authority=NULL) const |
bool | Get_Preference (CSG_Projection &Projection, int Code, const CSG_String &Authority) const |
bool | Get_Preference (CSG_Projection &Projection, const CSG_String &Authority_Code) const |
CSG_String | Get_Names_List (ESG_CRS_Type Type=ESG_CRS_Type::Undefined, bool bAddSelect=true) const |
void | Set_UseInternalDB (bool bUse=true) |
bool | Get_UseInternalDB (void) const |
Static Public Member Functions | |
static bool | Parse (const CSG_String &Definition, CSG_String *PROJ=NULL, CSG_String *WKT2=NULL, CSG_String *WKT1=NULL, CSG_String *JSON=NULL, CSG_String *ESRI=NULL) |
static CSG_String | Parse (const CSG_String &Definition, ESG_CRS_Format Format) |
static ESG_CRS_Type | Get_CRS_Type (const CSG_String &Identifier) |
static CSG_String | Get_CRS_Type_Identifier (ESG_CRS_Type Type) |
static CSG_String | Get_CRS_Type_Name (ESG_CRS_Type Type) |
static ESG_Projection_Unit | Get_Unit (const CSG_String &Identifier) |
static const CSG_String | Get_Unit_Identifier (ESG_Projection_Unit Unit) |
static const CSG_String | Get_Unit_Name (ESG_Projection_Unit Unit, bool bSimple=true) |
static double | Get_Unit_To_Meter (ESG_Projection_Unit Unit) |
static CSG_String | Convert_WKT2_to_XML (const CSG_String &WKT) |
Friends | |
class | CSG_Projection |
CSG_Projections is a projections dictionary and translator for EPSG codes, OGC Well-Known-Text, and Proj.4.
Definition at line 938 of file geo_tools.h.
CSG_Projections::CSG_Projections | ( | void | ) |
Definition at line 774 of file projections.cpp.
Referenced by CSG_Projection.
|
virtual |
Definition at line 839 of file projections.cpp.
References Destroy().
CSG_Projections::CSG_Projections | ( | bool | LoadCodeList | ) |
Definition at line 780 of file projections.cpp.
References Create().
bool CSG_Projections::Add | ( | const CSG_Projection & | Projection | ) |
Definition at line 866 of file projections.cpp.
References CSG_Projection, and Projection.
Referenced by CSG_Projection.
bool CSG_Projections::Add | ( | const SG_Char * | WKT, |
const SG_Char * | Proj4, | ||
const SG_Char * | Authority, | ||
int | Authority_ID ) |
Definition at line 872 of file projections.cpp.
References PRJ_FIELD_AUTH_NAME, PRJ_FIELD_AUTH_SRID, PRJ_FIELD_PROJ4TEXT, PRJ_FIELD_SRID, PRJ_FIELD_SRTEXT, CSG_Table_Record::Set_Value(), SG_Char, and WKT.
|
static |
Definition at line 1474 of file projections.cpp.
References WKT.
bool CSG_Projections::Create | ( | bool | LoadCodeList = true | ) |
Definition at line 787 of file projections.cpp.
References Destroy(), SG_File_Exists(), SG_File_Make_Path(), SG_UI_Get_API_Path(), and SG_UI_Get_Application_Path().
Referenced by CSG_Projection, CSG_Projections(), and SG_Initialize_Environment().
void CSG_Projections::Destroy | ( | void | ) |
Definition at line 848 of file projections.cpp.
Referenced by Create(), CSG_Projection, and ~CSG_Projections().
sLong CSG_Projections::Get_Count | ( | void | ) | const |
Definition at line 860 of file projections.cpp.
Referenced by CSG_Projection.
|
static |
Definition at line 2262 of file projections.cpp.
References CSG_String::CmpNoCase(), Geocentric, Geodetic, Geographic, Projection, and Undefined.
Referenced by CSG_Projection::Create(), CSG_Projection::Create(), and Get_Names_List().
|
static |
Definition at line 2273 of file projections.cpp.
References Geocentric, Geodetic, Geographic, and Projection.
Referenced by CSG_Projection::Get_Type_Identifier().
|
static |
Definition at line 2286 of file projections.cpp.
References _TL, Geocentric, Geodetic, Geographic, and Projection.
Referenced by CSG_Projection::Get_Description(), Get_Names_List(), and CSG_Projection::Get_Type_Name().
CSG_String CSG_Projections::Get_Names_List | ( | ESG_CRS_Type | Type = ESG_CRS_Type::Undefined, |
bool | bAddSelect = true ) const |
Definition at line 1294 of file projections.cpp.
References _TL, CSG_Table::Add_Field(), CSG_Table::Add_Record(), CSG_Table_Record::asInt(), CSG_Table_Record::asString(), CSG_String::Format(), CSG_Table::Get_Count(), Get_CRS_Type(), Get_CRS_Type_Name(), CSG_String::Printf(), PRJ_FIELD_AUTH_NAME, PRJ_FIELD_AUTH_SRID, PRJ_FIELD_SRTEXT, Projection, CSG_Table::Set_Index(), SG_DATATYPE_Int, SG_DATATYPE_String, TABLE_INDEX_Ascending, Undefined, and WKT.
bool CSG_Projections::Get_Preference | ( | CSG_Projection & | Projection, |
const CSG_String & | Authority_Code ) const |
Definition at line 1059 of file projections.cpp.
References CSG_String::AfterFirst(), CSG_String::asInt(), CSG_String::BeforeFirst(), CSG_Projection, CSG_String::Find(), Get_Preference(), CSG_String::is_Empty(), CSG_String::Length(), and Projection.
bool CSG_Projections::Get_Preference | ( | CSG_Projection & | Projection, |
int | Code, | ||
const CSG_String & | Authority ) const |
Definition at line 1026 of file projections.cpp.
References CSG_Table_Record::asInt(), CSG_Table_Record::asString(), CSG_String::CmpNoCase(), CSG_Projection, PRJ_FIELD_AUTH_NAME, PRJ_FIELD_AUTH_SRID, and Projection.
Referenced by Get_Preference(), Parse(), and Parse().
bool CSG_Projections::Get_Projection | ( | CSG_Projection & | Projection, |
int | Code, | ||
const SG_Char * | Authority = NULL ) const |
Definition at line 944 of file projections.cpp.
References CSG_Table_Record::asInt(), CSG_Table_Record::asString(), CSG_String::CmpNoCase(), CSG_Projection, PRJ_FIELD_AUTH_NAME, PRJ_FIELD_AUTH_SRID, Projection, SG_Char, and SG_T.
const SG_Char * CSG_Projections::Get_Projection | ( | int | Code, |
const SG_Char * | Authority = NULL ) const |
Definition at line 926 of file projections.cpp.
References CSG_Table_Record::asInt(), CSG_Table_Record::asString(), CSG_String::CmpNoCase(), PRJ_FIELD_AUTH_NAME, PRJ_FIELD_AUTH_SRID, PRJ_FIELD_SRTEXT, SG_Char, and SG_T.
CSG_Projection CSG_Projections::Get_Projection | ( | sLong | Index | ) | const |
Definition at line 920 of file projections.cpp.
References CSG_Projection.
Referenced by operator[]().
|
static |
Definition at line 2299 of file projections.cpp.
References CSG_String::CmpNoCase(), Get_Unit_Identifier(), Get_Unit_Name(), Meter, and Undefined.
|
static |
Definition at line 2316 of file projections.cpp.
References Centimeter, Decimeter, Indian_Chain, Indian_Foot, Indian_Yard, Int_Chain, Int_Fathom, Int_Foot, Int_Inch, Int_Link, Int_Nautical_Mile, Int_Statute_Mile, Int_Yard, Kilometer, Meter, Millimeter, US_Chain, US_Foot, US_Inch, US_Statute_Mile, and US_Yard.
Referenced by Get_Unit(), and CSG_Projection::Get_Unit_Identifier().
|
static |
Definition at line 2346 of file projections.cpp.
References Centimeter, Decimeter, Indian_Chain, Indian_Foot, Indian_Yard, Int_Chain, Int_Fathom, Int_Foot, Int_Inch, Int_Link, Int_Nautical_Mile, Int_Statute_Mile, Int_Yard, Kilometer, Meter, Millimeter, US_Chain, US_Foot, US_Inch, US_Statute_Mile, and US_Yard.
Referenced by Get_Unit(), and CSG_Projection::Get_Unit_Name().
|
static |
Definition at line 2376 of file projections.cpp.
References Centimeter, Decimeter, Indian_Chain, Indian_Foot, Indian_Yard, Int_Chain, Int_Fathom, Int_Foot, Int_Inch, Int_Link, Int_Nautical_Mile, Int_Statute_Mile, Int_Yard, Kilometer, Meter, Millimeter, US_Chain, US_Foot, US_Inch, US_Statute_Mile, and US_Yard.
Referenced by CSG_Projection::Get_Unit_To_Meter().
|
inline |
Definition at line 984 of file geo_tools.h.
bool CSG_Projections::Load | ( | const CSG_String & | File, |
bool | bAppend = false ) |
Definition at line 1118 of file projections.cpp.
Referenced by CSG_Projection.
|
inline |
Definition at line 962 of file geo_tools.h.
References CSG_Projection, and Get_Projection().
|
static |
Definition at line 1187 of file projections.cpp.
References CSG_String::AfterFirst(), CSG_String::asInt(), CSG_Parameter::asString(), CSG_String::BeforeFirst(), CSG_Tool_Library_Manager::Create_Tool(), CSG_Projection, CSG_Tool_Library_Manager::Delete_Tool(), ESRI, CSG_Tool::Execute(), CSG_Tool::Get_Parameter(), Get_Preference(), gSG_Projections, CSG_String::is_Empty(), JSON, Parse(), PROJ, Projection, CSG_Tool::Set_Callback(), CSG_Tool::Set_Parameter(), SG_Get_Projections(), SG_Get_Tool_Library_Manager(), SG_UI_ProgressAndMsg_Lock(), WKT, WKT1, and WKT2.
Referenced by CSG_Projection::Create(), CSG_Projection, CSG_Projection::Get_ESRI(), CSG_Projection::Get_JSON(), CSG_Projection::Get_WKT1(), Parse(), and Parse().
|
static |
Definition at line 1135 of file projections.cpp.
References CSG_Parameter::asString(), CSG_Tool_Library_Manager::Create_Tool(), CSG_Projection, CSG_Tool_Library_Manager::Delete_Tool(), ESRI, CSG_Tool::Execute(), CSG_Tool::Get_Parameter(), Get_Preference(), CSG_String::is_Empty(), JSON, Parse(), PROJ, Projection, CSG_Tool::Set_Callback(), CSG_Tool::Set_Parameter(), SG_Get_Projections(), SG_Get_Tool_Library_Manager(), SG_UI_ProgressAndMsg_Lock(), WKT1, and WKT2.
bool CSG_Projections::Save | ( | const CSG_String & | File | ) |
Definition at line 1124 of file projections.cpp.
Referenced by CSG_Projection.
|
inline |
Definition at line 983 of file geo_tools.h.
|
friend |
Definition at line 940 of file geo_tools.h.
References Add(), Create(), CSG_Projection, CSG_Projections(), Destroy(), ESRI, Get_Count(), JSON, Load(), Parse(), PROJ, Projection, Save(), SG_Char, WKT, WKT1, and WKT2.
Referenced by Add(), CSG_Projection, Get_Preference(), Get_Preference(), Get_Projection(), Get_Projection(), operator[](), Parse(), and Parse().