SAGA API  v9.5
CSG_Projection Class Reference

#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_Projectionoperator= (const CSG_Projection &Projection)
 
 CSG_Projection (const char *Definition)
 
bool Create (const char *Definition)
 
CSG_Projectionoperator= (const char *Definition)
 
 CSG_Projection (const wchar_t *Definition)
 
bool Create (const wchar_t *Definition)
 
CSG_Projectionoperator= (const wchar_t *Definition)
 
 CSG_Projection (const CSG_String &Definition)
 
bool Create (const CSG_String &Definition)
 
CSG_Projectionoperator= (const CSG_String &Definition)
 
 CSG_Projection (int Code, const SG_Char *Authority=NULL)
 
bool Create (int Code, const SG_Char *Authority=NULL)
 
CSG_Projectionoperator= (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_StringGet_Name (void) const
 
const CSG_StringGet_WKT (void) const
 
const CSG_StringGet_WKT1 (void) const
 
const CSG_StringGet_WKT2 (void) const
 
const CSG_StringGet_PROJ (void) const
 
const CSG_StringGet_ESRI (void) const
 
const CSG_StringGet_Authority (void) const
 
int Get_Code (void) const
 
const CSG_StringGet_Proj4 (void) const
 
int Get_Authority_ID (void) const
 
int Get_EPSG (void) const
 
bool is_Geographic (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_ProjectionGet_GCS_WGS84 (void)
 
static CSG_Projection Get_UTM_WGS84 (int Zone, bool bSouth=false)
 

Friends

class CSG_Projections
 

Detailed Description

Definition at line 823 of file geo_tools.h.

Constructor & Destructor Documentation

◆ CSG_Projection() [1/6]

CSG_Projection::CSG_Projection ( void  )

Definition at line 82 of file projections.cpp.

References Destroy().

◆ ~CSG_Projection()

CSG_Projection::~CSG_Projection ( void  )
virtual

Definition at line 87 of file projections.cpp.

◆ CSG_Projection() [2/6]

CSG_Projection::CSG_Projection ( const CSG_Projection Projection)

Definition at line 91 of file projections.cpp.

References Create().

◆ CSG_Projection() [3/6]

CSG_Projection::CSG_Projection ( const char *  Definition)

Definition at line 113 of file projections.cpp.

References Create().

◆ CSG_Projection() [4/6]

CSG_Projection::CSG_Projection ( const wchar_t *  Definition)

Definition at line 131 of file projections.cpp.

References Create().

◆ CSG_Projection() [5/6]

CSG_Projection::CSG_Projection ( const CSG_String Definition)

Definition at line 149 of file projections.cpp.

References Create().

◆ CSG_Projection() [6/6]

CSG_Projection::CSG_Projection ( int  Code,
const SG_Char Authority = NULL 
)

Definition at line 185 of file projections.cpp.

References Create().

Member Function Documentation

◆ Assign() [1/3]

bool CSG_Projection::Assign ( const CSG_Projection Projection)
inline

Definition at line 853 of file geo_tools.h.

References CSG_Projections::Create().

◆ Assign() [2/3]

bool CSG_Projection::Assign ( const CSG_String Definition)
inline

Definition at line 854 of file geo_tools.h.

References CSG_Projections::Create().

◆ Assign() [3/3]

bool CSG_Projection::Assign ( int  Code,
const SG_Char Authority = NULL 
)
inline

Definition at line 855 of file geo_tools.h.

References CSG_Projections::Create().

◆ Create() [1/5]

bool CSG_Projection::Create ( const char *  Definition)

Definition at line 118 of file projections.cpp.

References Create(), and Destroy().

◆ Create() [2/5]

◆ Create() [3/5]

bool CSG_Projection::Create ( const CSG_String Definition)

◆ Create() [4/5]

bool CSG_Projection::Create ( const wchar_t *  Definition)

Definition at line 136 of file projections.cpp.

References Create(), and Destroy().

◆ Create() [5/5]

bool CSG_Projection::Create ( int  Code,
const SG_Char Authority = NULL 
)

◆ Destroy()

void CSG_Projection::Destroy ( void  )

Definition at line 201 of file projections.cpp.

References _TL, CSG_String::Clear(), and Geographic.

Referenced by Create(), CSG_Projection(), and CSG_Tool::Get_Projection().

◆ Get_Authority()

const CSG_String& CSG_Projection::Get_Authority ( void  ) const
inline

Definition at line 886 of file geo_tools.h.

◆ Get_Authority_ID()

int CSG_Projection::Get_Authority_ID ( void  ) const
inline

Definition at line 890 of file geo_tools.h.

◆ Get_Code()

int CSG_Projection::Get_Code ( void  ) const
inline

Definition at line 887 of file geo_tools.h.

◆ Get_Description()

◆ Get_EPSG()

int CSG_Projection::Get_EPSG ( void  ) const
inline

Definition at line 891 of file geo_tools.h.

Referenced by CSG_Grid_OGIS_Converter::to_WKBinary().

◆ Get_ESRI()

const CSG_String& CSG_Projection::Get_ESRI ( void  ) const
inline

Definition at line 885 of file geo_tools.h.

Referenced by CSG_Projections::Parse().

◆ Get_GCS_WGS84()

const CSG_Projection & CSG_Projection::Get_GCS_WGS84 ( void  )
static

Definition at line 537 of file projections.cpp.

References is_Okay(), and Set_GCS_WGS84().

◆ Get_Name()

const CSG_String& CSG_Projection::Get_Name ( void  ) const
inline

Definition at line 879 of file geo_tools.h.

◆ Get_PROJ()

const CSG_String& CSG_Projection::Get_PROJ ( void  ) const
inline

Definition at line 884 of file geo_tools.h.

Referenced by CSG_Parameters_CRSPicker::Get_CRS(), and CSG_Projections::Parse().

◆ Get_Proj4()

const CSG_String& CSG_Projection::Get_Proj4 ( void  ) const
inline

Definition at line 889 of file geo_tools.h.

◆ Get_Type()

ESG_CRS_Type CSG_Projection::Get_Type ( void  ) const
inline

Definition at line 897 of file geo_tools.h.

Referenced by is_Equal(), and CSG_Data_Object::Save_MetaData().

◆ Get_Type_Identifier()

CSG_String CSG_Projection::Get_Type_Identifier ( void  ) const

Definition at line 502 of file projections.cpp.

References CSG_Projections::Get_CRS_Type_Identifier().

◆ Get_Type_Name()

CSG_String CSG_Projection::Get_Type_Name ( void  ) const

Definition at line 508 of file projections.cpp.

References CSG_Projections::Get_CRS_Type_Name().

◆ Get_Unit()

ESG_Projection_Unit CSG_Projection::Get_Unit ( void  ) const
inline

Definition at line 901 of file geo_tools.h.

◆ Get_Unit_Identifier()

CSG_String CSG_Projection::Get_Unit_Identifier ( void  ) const

Definition at line 514 of file projections.cpp.

References CSG_Projections::Get_Unit_Identifier().

◆ Get_Unit_Name()

CSG_String CSG_Projection::Get_Unit_Name ( void  ) const

Definition at line 520 of file projections.cpp.

References CSG_Projections::Get_Unit_Name().

◆ Get_Unit_To_Meter()

double CSG_Projection::Get_Unit_To_Meter ( void  ) const

Definition at line 526 of file projections.cpp.

References CSG_Projections::Get_Unit_To_Meter().

◆ Get_UTM_WGS84()

CSG_Projection CSG_Projection::Get_UTM_WGS84 ( int  Zone,
bool  bSouth = false 
)
static

Definition at line 556 of file projections.cpp.

References Set_UTM_WGS84().

◆ Get_WKT()

const CSG_String& CSG_Projection::Get_WKT ( void  ) const
inline

Definition at line 881 of file geo_tools.h.

Referenced by CSG_Grid_File_Info::Save_AUX_XML(), and SG_Get_Projected().

◆ Get_WKT1()

const CSG_String& CSG_Projection::Get_WKT1 ( void  ) const
inline

Definition at line 882 of file geo_tools.h.

Referenced by CSG_Projections::Parse().

◆ Get_WKT2()

const CSG_String& CSG_Projection::Get_WKT2 ( void  ) const
inline

Definition at line 883 of file geo_tools.h.

Referenced by CSG_Projections::Parse().

◆ is_Equal()

bool CSG_Projection::is_Equal ( const CSG_Projection Projection) const

◆ is_Geocentric()

bool CSG_Projection::is_Geocentric ( void  ) const
inline

Definition at line 894 of file geo_tools.h.

◆ is_Geographic()

bool CSG_Projection::is_Geographic ( void  ) const
inline

Definition at line 893 of file geo_tools.h.

Referenced by Get_Description(), and is_Equal().

◆ is_Okay()

◆ is_Projection()

bool CSG_Projection::is_Projection ( void  ) const
inline

Definition at line 895 of file geo_tools.h.

Referenced by Get_Description(), and is_Equal().

◆ Load() [1/3]

bool CSG_Projection::Load ( const CSG_MetaData Projection)

Definition at line 269 of file projections.cpp.

References Create().

◆ Load() [2/3]

bool CSG_Projection::Load ( const CSG_String File)

Definition at line 221 of file projections.cpp.

References SG_FILE_R.

Referenced by CSG_Data_Object::Load_MetaData().

◆ Load() [3/3]

bool CSG_Projection::Load ( CSG_File Stream)

◆ operator!=()

bool CSG_Projection::operator!= ( const CSG_Projection Projection) const
inline

Definition at line 860 of file geo_tools.h.

◆ operator=() [1/5]

CSG_Projection& CSG_Projection::operator= ( const char *  Definition)
inline

Definition at line 839 of file geo_tools.h.

References CSG_Projections::Create().

◆ operator=() [2/5]

CSG_Projection& CSG_Projection::operator= ( const CSG_Projection Projection)
inline

Definition at line 835 of file geo_tools.h.

References CSG_Projections::Create().

◆ operator=() [3/5]

CSG_Projection& CSG_Projection::operator= ( const CSG_String Definition)
inline

Definition at line 847 of file geo_tools.h.

References CSG_Projections::Create().

◆ operator=() [4/5]

CSG_Projection& CSG_Projection::operator= ( const wchar_t *  Definition)
inline

Definition at line 843 of file geo_tools.h.

References CSG_Projections::Create().

◆ operator=() [5/5]

CSG_Projection& CSG_Projection::operator= ( int  Code)
inline

Definition at line 851 of file geo_tools.h.

References CSG_Projections::Create().

◆ operator==()

bool CSG_Projection::operator== ( const CSG_Projection Projection) const
inline

Definition at line 859 of file geo_tools.h.

◆ Save() [1/3]

bool CSG_Projection::Save ( const CSG_String File,
ESG_CRS_Format  Format = ESG_CRS_Format::WKT 
) const

Definition at line 229 of file projections.cpp.

References is_Okay(), and SG_FILE_W.

Referenced by CSG_PointCloud::Save(), and CSG_Data_Object::Save_MetaData().

◆ Save() [2/3]

bool CSG_Projection::Save ( CSG_File Stream,
ESG_CRS_Format  Format = ESG_CRS_Format::WKT 
) const

◆ Save() [3/3]

bool CSG_Projection::Save ( CSG_MetaData Projection) const

◆ Set_GCS_WGS84()

bool CSG_Projection::Set_GCS_WGS84 ( void  )

Definition at line 550 of file projections.cpp.

References Create().

Referenced by Get_GCS_WGS84().

◆ Set_UTM_WGS84()

bool CSG_Projection::Set_UTM_WGS84 ( int  Zone,
bool  bSouth = false 
)

Definition at line 566 of file projections.cpp.

References CSG_String::c_str(), Create(), WKT1, and WKT_GCS_WGS84.

Referenced by Get_UTM_WGS84().

Friends And Related Function Documentation

◆ CSG_Projections

friend class CSG_Projections
friend

Definition at line 825 of file geo_tools.h.


The documentation for this class was generated from the following files: