SAGA API  v9.2
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)
 
bool Assign (const CSG_Projection &Projection)
 
CSG_Projectionoperator= (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_Projectionoperator= (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_Projectionoperator= (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_StringGet_Name (void) const
 
const CSG_StringGet_WKT (void) const
 
const CSG_StringGet_Proj4 (void) const
 
const CSG_StringGet_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
 

Detailed Description

Definition at line 832 of file geo_tools.h.

Constructor & Destructor Documentation

◆ CSG_Projection() [1/5]

CSG_Projection::CSG_Projection ( void  )

Definition at line 236 of file projections.cpp.

References Destroy().

◆ ~CSG_Projection()

CSG_Projection::~CSG_Projection ( void  )
virtual

Definition at line 241 of file projections.cpp.

◆ CSG_Projection() [2/5]

CSG_Projection::CSG_Projection ( const CSG_Projection Projection)

Definition at line 245 of file projections.cpp.

References Create(), and Destroy().

◆ CSG_Projection() [3/5]

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

Definition at line 273 of file projections.cpp.

References Create(), and Destroy().

◆ CSG_Projection() [4/5]

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() [5/5]

CSG_Projection::CSG_Projection ( const CSG_String WKT,
const CSG_String Proj4 
)

Definition at line 371 of file projections.cpp.

References Create().

Member Function Documentation

◆ Assign() [1/4]

bool CSG_Projection::Assign ( const CSG_Projection Projection)

Definition at line 257 of file projections.cpp.

Referenced by Assign(), Create(), and Load().

◆ Assign() [2/4]

◆ Assign() [3/4]

bool CSG_Projection::Assign ( const CSG_String WKT,
const CSG_String Proj4 
)

Definition at line 381 of file projections.cpp.

References Assign().

◆ Assign() [4/4]

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.

◆ Create() [1/4]

◆ Create() [2/4]

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().

◆ Create() [3/4]

bool CSG_Projection::Create ( const CSG_String WKT,
const CSG_String Proj4 
)

Definition at line 376 of file projections.cpp.

References Assign().

◆ Create() [4/4]

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

Definition at line 280 of file projections.cpp.

References Assign().

◆ Destroy()

void CSG_Projection::Destroy ( void  )

◆ Get_Authority()

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

Definition at line 881 of file geo_tools.h.

◆ Get_Authority_ID()

int CSG_Projection::Get_Authority_ID ( void  ) const
inline

Definition at line 882 of file geo_tools.h.

◆ Get_Description()

CSG_String CSG_Projection::Get_Description ( void  ) const

◆ Get_EPSG()

int CSG_Projection::Get_EPSG ( void  ) const
inline

Definition at line 883 of file geo_tools.h.

Referenced by Save(), and CSG_Grid_OGIS_Converter::to_WKBinary().

◆ Get_Name()

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

Definition at line 878 of file geo_tools.h.

◆ Get_Proj4()

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

Definition at line 880 of file geo_tools.h.

Referenced by SG_Get_Projected().

◆ Get_Type()

TSG_Projection_Type CSG_Projection::Get_Type ( void  ) const
inline

Definition at line 887 of file geo_tools.h.

Referenced by CSG_Data_Object::Save_MetaData().

◆ Get_Type_Identifier()

CSG_String CSG_Projection::Get_Type_Identifier ( void  ) const
inline

Definition at line 888 of file geo_tools.h.

References SG_Get_Projection_Type_Identifier().

◆ Get_Type_Name()

CSG_String CSG_Projection::Get_Type_Name ( void  ) const
inline

Definition at line 889 of file geo_tools.h.

References SG_Get_Projection_Type_Name().

◆ Get_Unit()

TSG_Projection_Unit CSG_Projection::Get_Unit ( void  ) const
inline

Definition at line 896 of file geo_tools.h.

◆ Get_Unit_Identifier()

CSG_String CSG_Projection::Get_Unit_Identifier ( void  ) const
inline

Definition at line 897 of file geo_tools.h.

References SG_Get_Projection_Unit_Identifier().

◆ Get_Unit_Name()

CSG_String CSG_Projection::Get_Unit_Name ( void  ) const
inline

Definition at line 898 of file geo_tools.h.

◆ Get_Unit_To_Meter()

double CSG_Projection::Get_Unit_To_Meter ( void  ) const
inline

Definition at line 899 of file geo_tools.h.

◆ Get_WKT()

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

Definition at line 879 of file geo_tools.h.

Referenced by CSG_Grid_File_Info::Save_AUX_XML().

◆ is_Equal()

◆ is_Geocentric()

bool CSG_Projection::is_Geocentric ( void  ) const
inline

Definition at line 893 of file geo_tools.h.

References SG_PROJ_TYPE_CS_Geocentric.

◆ is_Geographic()

bool CSG_Projection::is_Geographic ( void  ) const
inline

Definition at line 892 of file geo_tools.h.

References SG_PROJ_TYPE_CS_Geographic.

◆ is_Okay()

◆ is_Projection()

bool CSG_Projection::is_Projection ( void  ) const
inline

Definition at line 891 of file geo_tools.h.

References SG_PROJ_TYPE_CS_Projected.

◆ Load() [1/3]

bool CSG_Projection::Load ( const CSG_MetaData Projection)

◆ Load() [2/3]

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().

◆ Load() [3/3]

bool CSG_Projection::Load ( CSG_File Stream,
TSG_Projection_Format  Format = SG_PROJ_FMT_WKT 
)

◆ operator!=()

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

Definition at line 864 of file geo_tools.h.

◆ operator=() [1/3]

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

Definition at line 845 of file geo_tools.h.

◆ operator=() [2/3]

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

Definition at line 855 of file geo_tools.h.

◆ operator=() [3/3]

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

Definition at line 850 of file geo_tools.h.

◆ operator==()

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

Definition at line 863 of file geo_tools.h.

◆ Save() [1/3]

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().

◆ Save() [2/3]

bool CSG_Projection::Save ( CSG_File Stream,
TSG_Projection_Format  Format = SG_PROJ_FMT_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 509 of file projections.cpp.

References Create(), PROJ4_GCS_WGS84, and WKT_GCS_WGS84.

◆ Set_UTM_WGS84()

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

Friends And Related Function Documentation

◆ CSG_Projections

friend class CSG_Projections
friend

Definition at line 834 of file geo_tools.h.


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