SAGA API  v9.2
CSG_Projections Class Reference

#include <geo_tools.h>

Public Member Functions

 CSG_Projections (void)
 
virtual ~CSG_Projections (void)
 
 CSG_Projections (bool bLoad_DB)
 
bool Create (bool bLoad_DB=true)
 
 CSG_Projections (const CSG_String &File_DB)
 
bool Create (const CSG_String &File_DB)
 
void Destroy (void)
 
bool Reset_Dictionary (void)
 
bool Load_Dictionary (const CSG_String &FileName)
 
bool Save_Dictionary (const CSG_String &FileName)
 
bool Load_DB (const CSG_String &FileName, bool bAppend=false)
 
bool Save_DB (const CSG_String &FileName)
 
sLong Get_Count (void) const
 
bool Add (const CSG_Projection &Projection)
 
bool Add (const SG_Char *WKT, const SG_Char *Proj4, const SG_Char *Authority, int Authority_ID)
 
CSG_Projection Get_Projection (sLong Index) const
 
CSG_Projection operator[] (sLong Index) const
 
bool Get_Projection (CSG_Projection &Projection, int EPSG_ID) const
 
bool Get_Projection (CSG_Projection &Projection, const CSG_String &Authority, int Authority_ID) const
 
CSG_String Get_Names_List (TSG_Projection_Type Type=SG_PROJ_TYPE_CS_Undefined) const
 
bool WKT_to_Proj4 (CSG_String &Proj4, const CSG_String &WKT) const
 
bool WKT_from_Proj4 (CSG_String &WKT, const CSG_String &Proj4) const
 
bool EPSG_to_Proj4 (CSG_String &Proj4, int EPSG_Code) const
 
bool EPSG_to_WKT (CSG_String &WKT, int EPSG_Code) const
 

Static Public Member Functions

static CSG_MetaData WKT_to_MetaData (const CSG_String &WKT)
 
static const CSG_ProjectionGet_GCS_WGS84 (void)
 
static CSG_Projection Get_UTM_WGS84 (int Zone, bool bSouth=false)
 

Friends

class CSG_Projection
 

Detailed Description

CSG_Projections is a projections dictionary and translator for EPSG codes, OGC Well-Known-Text, and Proj.4.

Definition at line 927 of file geo_tools.h.

Constructor & Destructor Documentation

◆ CSG_Projections() [1/3]

CSG_Projections::CSG_Projections ( void  )

Definition at line 708 of file projections.cpp.

◆ ~CSG_Projections()

CSG_Projections::~CSG_Projections ( void  )
virtual

Definition at line 778 of file projections.cpp.

References Destroy().

◆ CSG_Projections() [2/3]

CSG_Projections::CSG_Projections ( bool  bLoad_DB)

Definition at line 714 of file projections.cpp.

References Create().

◆ CSG_Projections() [3/3]

CSG_Projections::CSG_Projections ( const CSG_String File_DB)

Definition at line 745 of file projections.cpp.

References Create().

Member Function Documentation

◆ Add() [1/2]

bool CSG_Projections::Add ( const CSG_Projection Projection)

Definition at line 928 of file projections.cpp.

◆ Add() [2/2]

bool CSG_Projections::Add ( const SG_Char WKT,
const SG_Char Proj4,
const SG_Char Authority,
int  Authority_ID 
)

◆ Create() [1/2]

bool CSG_Projections::Create ( bool  bLoad_DB = true)

◆ Create() [2/2]

bool CSG_Projections::Create ( const CSG_String File_DB)

Definition at line 752 of file projections.cpp.

References Load_DB(), and SG_UI_Msg_Lock().

◆ Destroy()

void CSG_Projections::Destroy ( void  )

Definition at line 786 of file projections.cpp.

References CSG_Table::Del_Records(), and Reset_Dictionary().

Referenced by Create(), and ~CSG_Projections().

◆ EPSG_to_Proj4()

bool CSG_Projections::EPSG_to_Proj4 ( CSG_String Proj4,
int  EPSG_Code 
) const

◆ EPSG_to_WKT()

bool CSG_Projections::EPSG_to_WKT ( CSG_String WKT,
int  EPSG_Code 
) const

◆ Get_Count()

sLong CSG_Projections::Get_Count ( void  ) const

Definition at line 922 of file projections.cpp.

References CSG_Table::Get_Count().

Referenced by Get_Names_List(), and Get_Projection().

◆ Get_GCS_WGS84()

const CSG_Projection & CSG_Projections::Get_GCS_WGS84 ( void  )
static

Definition at line 899 of file projections.cpp.

References PROJ4_GCS_WGS84, and WKT_GCS_WGS84.

◆ Get_Names_List()

◆ Get_Projection() [1/3]

bool CSG_Projections::Get_Projection ( CSG_Projection Projection,
const CSG_String Authority,
int  Authority_ID 
) const

◆ Get_Projection() [2/3]

bool CSG_Projections::Get_Projection ( CSG_Projection Projection,
int  EPSG_ID 
) const

Definition at line 976 of file projections.cpp.

References Get_Projection().

◆ Get_Projection() [3/3]

◆ Get_UTM_WGS84()

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

Definition at line 907 of file projections.cpp.

References CSG_Projection::Set_UTM_WGS84().

◆ Load_DB()

◆ Load_Dictionary()

bool CSG_Projections::Load_Dictionary ( const CSG_String FileName)

◆ operator[]()

CSG_Projection CSG_Projections::operator[] ( sLong  Index) const
inline

Definition at line 956 of file geo_tools.h.

◆ Reset_Dictionary()

bool CSG_Projections::Reset_Dictionary ( void  )

Definition at line 802 of file projections.cpp.

Referenced by Destroy().

◆ Save_DB()

bool CSG_Projections::Save_DB ( const CSG_String FileName)

Definition at line 888 of file projections.cpp.

References CSG_Table::Save().

◆ Save_Dictionary()

bool CSG_Projections::Save_Dictionary ( const CSG_String FileName)

Definition at line 847 of file projections.cpp.

References CSG_Table::Save().

◆ WKT_from_Proj4()

◆ WKT_to_MetaData()

CSG_MetaData CSG_Projections::WKT_to_MetaData ( const CSG_String WKT)
static

◆ WKT_to_Proj4()

Friends And Related Function Documentation

◆ CSG_Projection

friend class CSG_Projection
friend

Definition at line 929 of file geo_tools.h.


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