![]() |
SAGA API
v9.2
|
#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) |
bool | Assign (const CSG_Projection &Projection) |
CSG_Projection & | operator= (const CSG_Projection &Projection) |
CSG_Projection (int Authority_ID, const SG_Char *Authority=NULL) | |
bool | Create (int Authority_ID, const SG_Char *Authority=NULL) |
bool | Assign (int Authority_ID, const SG_Char *Authority=NULL) |
CSG_Projection & | operator= (int Authority_ID) |
CSG_Projection (const CSG_String &Projection, TSG_Projection_Format Format=SG_PROJ_FMT_WKT) | |
bool | Create (const CSG_String &Projection, TSG_Projection_Format Format=SG_PROJ_FMT_WKT) |
bool | Assign (const CSG_String &Projection, TSG_Projection_Format Format=SG_PROJ_FMT_WKT) |
CSG_Projection & | operator= (const CSG_String &Projection) |
CSG_Projection (const CSG_String &WKT, const CSG_String &Proj4) | |
bool | Create (const CSG_String &WKT, const CSG_String &Proj4) |
bool | Assign (const CSG_String &WKT, const CSG_String &Proj4) |
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 &FileName, TSG_Projection_Format Format=SG_PROJ_FMT_WKT) |
bool | Save (const CSG_String &FileName, TSG_Projection_Format Format=SG_PROJ_FMT_WKT) const |
bool | Load (CSG_File &Stream, TSG_Projection_Format Format=SG_PROJ_FMT_WKT) |
bool | Save (CSG_File &Stream, TSG_Projection_Format Format=SG_PROJ_FMT_WKT) const |
bool | Load (const CSG_MetaData &Projection) |
bool | Save (CSG_MetaData &Projection) const |
const CSG_String & | Get_Name (void) const |
const CSG_String & | Get_WKT (void) const |
const CSG_String & | Get_Proj4 (void) const |
const CSG_String & | Get_Authority (void) const |
int | Get_Authority_ID (void) const |
int | Get_EPSG (void) const |
CSG_String | Get_Description (void) const |
TSG_Projection_Type | Get_Type (void) const |
CSG_String | Get_Type_Identifier (void) const |
CSG_String | Get_Type_Name (void) const |
bool | is_Projection (void) const |
bool | is_Geographic (void) const |
bool | is_Geocentric (void) const |
TSG_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 |
Friends | |
class | CSG_Projections |
Definition at line 832 of file geo_tools.h.
CSG_Projection::CSG_Projection | ( | void | ) |
Definition at line 236 of file projections.cpp.
References Destroy().
|
virtual |
Definition at line 241 of file projections.cpp.
CSG_Projection::CSG_Projection | ( | const CSG_Projection & | Projection | ) |
Definition at line 245 of file projections.cpp.
CSG_Projection::CSG_Projection | ( | int | Authority_ID, |
const SG_Char * | Authority = NULL |
||
) |
Definition at line 273 of file projections.cpp.
CSG_Projection::CSG_Projection | ( | const CSG_String & | Projection, |
TSG_Projection_Format | Format = SG_PROJ_FMT_WKT |
||
) |
Definition at line 294 of file projections.cpp.
References Create().
CSG_Projection::CSG_Projection | ( | const CSG_String & | WKT, |
const CSG_String & | Proj4 | ||
) |
Definition at line 371 of file projections.cpp.
References Create().
bool CSG_Projection::Assign | ( | const CSG_Projection & | Projection | ) |
Definition at line 257 of file projections.cpp.
bool CSG_Projection::Assign | ( | const CSG_String & | Projection, |
TSG_Projection_Format | Format = SG_PROJ_FMT_WKT |
||
) |
Definition at line 304 of file projections.cpp.
References CSG_String::asInt(), Assign(), CSG_String::CmpNoCase(), Destroy(), CSG_MetaData::Get_Name(), CSG_Projections::Get_Projection(), CSG_MetaData::Get_Property(), gSG_Projections, CSG_String::is_Empty(), SG_Get_Projection_Type(), SG_PROJ_FMT_EPSG, SG_PROJ_FMT_Proj4, SG_PROJ_FMT_WKT, SG_Set_Projection_Unit(), SG_T, CSG_Projections::WKT_from_Proj4(), CSG_Projections::WKT_to_MetaData(), and CSG_Projections::WKT_to_Proj4().
bool CSG_Projection::Assign | ( | const CSG_String & | WKT, |
const CSG_String & | Proj4 | ||
) |
Definition at line 381 of file projections.cpp.
References Assign().
bool CSG_Projection::Assign | ( | int | Authority_ID, |
const SG_Char * | Authority = NULL |
||
) |
Definition at line 285 of file projections.cpp.
References CSG_Projections::Get_Projection(), and gSG_Projections.
bool CSG_Projection::Create | ( | const CSG_Projection & | Projection | ) |
Definition at line 252 of file projections.cpp.
References Assign().
Referenced by CSG_Shapes::Assign(), CSG_PointCloud::Assign(), CSG_Grids::Create(), CSG_Projection(), CSG_Grid_OGIS_Converter::from_WKBinary(), Set_GCS_WGS84(), CSG_Tool_Interactive_Base::Set_Projection(), Set_UTM_WGS84(), and SG_Get_Projected().
bool CSG_Projection::Create | ( | const CSG_String & | Projection, |
TSG_Projection_Format | Format = SG_PROJ_FMT_WKT |
||
) |
Definition at line 299 of file projections.cpp.
References Assign().
bool CSG_Projection::Create | ( | const CSG_String & | WKT, |
const CSG_String & | Proj4 | ||
) |
Definition at line 376 of file projections.cpp.
References Assign().
bool CSG_Projection::Create | ( | int | Authority_ID, |
const SG_Char * | Authority = NULL |
||
) |
Definition at line 280 of file projections.cpp.
References Assign().
void CSG_Projection::Destroy | ( | void | ) |
Definition at line 394 of file projections.cpp.
References _TL, CSG_String::Clear(), SG_PROJ_TYPE_CS_Undefined, and SG_PROJ_UNIT_Undefined.
Referenced by Assign(), CSG_Projection(), and CSG_Tool::Get_Projection().
|
inline |
Definition at line 881 of file geo_tools.h.
|
inline |
Definition at line 882 of file geo_tools.h.
CSG_String CSG_Projection::Get_Description | ( | void | ) | const |
Definition at line 661 of file projections.cpp.
References CSG_String::c_str(), CSG_String::Format(), is_Okay(), CSG_String::Length(), and SG_Get_Projection_Type_Name().
|
inline |
Definition at line 883 of file geo_tools.h.
Referenced by Save(), and CSG_Grid_OGIS_Converter::to_WKBinary().
|
inline |
Definition at line 878 of file geo_tools.h.
|
inline |
Definition at line 880 of file geo_tools.h.
Referenced by SG_Get_Projected().
|
inline |
Definition at line 887 of file geo_tools.h.
Referenced by CSG_Data_Object::Save_MetaData().
|
inline |
Definition at line 888 of file geo_tools.h.
References SG_Get_Projection_Type_Identifier().
|
inline |
Definition at line 889 of file geo_tools.h.
References SG_Get_Projection_Type_Name().
|
inline |
Definition at line 896 of file geo_tools.h.
|
inline |
Definition at line 897 of file geo_tools.h.
References SG_Get_Projection_Unit_Identifier().
|
inline |
Definition at line 898 of file geo_tools.h.
|
inline |
Definition at line 899 of file geo_tools.h.
|
inline |
Definition at line 879 of file geo_tools.h.
Referenced by CSG_Grid_File_Info::Save_AUX_XML().
bool CSG_Projection::is_Equal | ( | const CSG_Projection & | Projection | ) | const |
Definition at line 557 of file projections.cpp.
References CSG_MetaData::Add_Child(), CSG_String::Cmp(), CSG_MetaData::Cmp_Content(), CSG_String::CmpNoCase(), CSG_MetaData::Get_Children_Count(), CSG_Strings::Get_Count(), GET_DATUM, CSG_MetaData::Get_Name(), CSG_String::is_Empty(), is_Okay(), CSG_String::Make_Lower(), SG_String_Tokenize(), and CSG_String::Trim_Both().
|
inline |
Definition at line 893 of file geo_tools.h.
References SG_PROJ_TYPE_CS_Geocentric.
|
inline |
Definition at line 892 of file geo_tools.h.
References SG_PROJ_TYPE_CS_Geographic.
|
inline |
Definition at line 861 of file geo_tools.h.
References SG_PROJ_TYPE_CS_Undefined.
Referenced by CSG_Grids::Add_Grid(), CSG_Grid::Assign(), Get_Description(), CSG_Tool::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 891 of file geo_tools.h.
References SG_PROJ_TYPE_CS_Projected.
bool CSG_Projection::Load | ( | const CSG_MetaData & | Projection | ) |
Definition at line 462 of file projections.cpp.
References Assign(), CSG_MetaData::Get_Child(), CSG_MetaData::Get_Content(), and SG_PROJ_FMT_WKT.
bool CSG_Projection::Load | ( | const CSG_String & | FileName, |
TSG_Projection_Format | Format = SG_PROJ_FMT_WKT |
||
) |
Definition at line 413 of file projections.cpp.
References SG_FILE_R.
Referenced by CSG_Data_Object::Load_MetaData().
bool CSG_Projection::Load | ( | CSG_File & | Stream, |
TSG_Projection_Format | Format = SG_PROJ_FMT_WKT |
||
) |
Definition at line 429 of file projections.cpp.
References Assign(), CSG_File::is_Reading(), CSG_File::Length(), and CSG_File::Read().
|
inline |
Definition at line 864 of file geo_tools.h.
|
inline |
Definition at line 845 of file geo_tools.h.
|
inline |
Definition at line 855 of file geo_tools.h.
|
inline |
Definition at line 850 of file geo_tools.h.
|
inline |
Definition at line 863 of file geo_tools.h.
bool CSG_Projection::Save | ( | const CSG_String & | FileName, |
TSG_Projection_Format | Format = SG_PROJ_FMT_WKT |
||
) | const |
Definition at line 421 of file projections.cpp.
References is_Okay(), and SG_FILE_W.
Referenced by CSG_PointCloud::Save(), and CSG_Data_Object::Save_MetaData().
bool CSG_Projection::Save | ( | CSG_File & | Stream, |
TSG_Projection_Format | Format = SG_PROJ_FMT_WKT |
||
) | const |
Definition at line 444 of file projections.cpp.
References is_Okay(), CSG_File::is_Writing(), CSG_String::Length(), SG_PROJ_FMT_Proj4, SG_PROJ_FMT_WKT, and CSG_File::Write().
bool CSG_Projection::Save | ( | CSG_MetaData & | Projection | ) | const |
Definition at line 482 of file projections.cpp.
References CSG_MetaData::Add_Child(), CSG_MetaData::Del_Children(), and Get_EPSG().
bool CSG_Projection::Set_GCS_WGS84 | ( | void | ) |
Definition at line 509 of file projections.cpp.
References Create(), PROJ4_GCS_WGS84, and WKT_GCS_WGS84.
bool CSG_Projection::Set_UTM_WGS84 | ( | int | Zone, |
bool | bSouth = false |
||
) |
Definition at line 515 of file projections.cpp.
References CSG_String::c_str(), Create(), CSG_String::Printf(), SG_T, and WKT_GCS_WGS84.
Referenced by CSG_Projections::Get_UTM_WGS84().
|
friend |
Definition at line 834 of file geo_tools.h.