SAGA API v9.10
Loading...
Searching...
No Matches
CSG_Projections Class Reference

#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_CharGet_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

Detailed Description

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.

Constructor & Destructor Documentation

◆ CSG_Projections() [1/2]

CSG_Projections::CSG_Projections ( void )

Definition at line 774 of file projections.cpp.

Referenced by CSG_Projection.

◆ ~CSG_Projections()

CSG_Projections::~CSG_Projections ( void )
virtual

Definition at line 839 of file projections.cpp.

References Destroy().

◆ CSG_Projections() [2/2]

CSG_Projections::CSG_Projections ( bool LoadCodeList)

Definition at line 780 of file projections.cpp.

References Create().

Member Function Documentation

◆ Add() [1/2]

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.

◆ Add() [2/2]

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

◆ Convert_WKT2_to_XML()

CSG_String CSG_Projections::Convert_WKT2_to_XML ( const CSG_String & WKT)
static

Definition at line 1474 of file projections.cpp.

References WKT.

◆ Create()

bool CSG_Projections::Create ( bool LoadCodeList = true)

◆ Destroy()

void CSG_Projections::Destroy ( void )

Definition at line 848 of file projections.cpp.

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

◆ Get_Count()

sLong CSG_Projections::Get_Count ( void ) const

Definition at line 860 of file projections.cpp.

Referenced by CSG_Projection.

◆ Get_CRS_Type()

ESG_CRS_Type CSG_Projections::Get_CRS_Type ( const CSG_String & Identifier)
static

◆ Get_CRS_Type_Identifier()

CSG_String CSG_Projections::Get_CRS_Type_Identifier ( ESG_CRS_Type Type)
static

Definition at line 2273 of file projections.cpp.

References Geocentric, Geodetic, Geographic, and Projection.

Referenced by CSG_Projection::Get_Type_Identifier().

◆ Get_CRS_Type_Name()

CSG_String CSG_Projections::Get_CRS_Type_Name ( ESG_CRS_Type Type)
static

◆ Get_Names_List()

◆ Get_Preference() [1/2]

bool CSG_Projections::Get_Preference ( CSG_Projection & Projection,
const CSG_String & Authority_Code ) const

◆ Get_Preference() [2/2]

bool CSG_Projections::Get_Preference ( CSG_Projection & Projection,
int Code,
const CSG_String & Authority ) const

◆ Get_Projection() [1/3]

bool CSG_Projections::Get_Projection ( CSG_Projection & Projection,
int Code,
const SG_Char * Authority = NULL ) const

◆ Get_Projection() [2/3]

const SG_Char * CSG_Projections::Get_Projection ( int Code,
const SG_Char * Authority = NULL ) const

◆ Get_Projection() [3/3]

CSG_Projection CSG_Projections::Get_Projection ( sLong Index) const

Definition at line 920 of file projections.cpp.

References CSG_Projection.

Referenced by operator[]().

◆ Get_Unit()

ESG_Projection_Unit CSG_Projections::Get_Unit ( const CSG_String & Identifier)
static

◆ Get_Unit_Identifier()

◆ Get_Unit_Name()

◆ Get_Unit_To_Meter()

◆ Get_UseInternalDB()

bool CSG_Projections::Get_UseInternalDB ( void ) const
inline

Definition at line 984 of file geo_tools.h.

◆ Load()

bool CSG_Projections::Load ( const CSG_String & File,
bool bAppend = false )

Definition at line 1118 of file projections.cpp.

Referenced by CSG_Projection.

◆ operator[]()

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

Definition at line 962 of file geo_tools.h.

References CSG_Projection, and Get_Projection().

◆ Parse() [1/2]

◆ Parse() [2/2]

◆ Save()

bool CSG_Projections::Save ( const CSG_String & File)

Definition at line 1124 of file projections.cpp.

Referenced by CSG_Projection.

◆ Set_UseInternalDB()

void CSG_Projections::Set_UseInternalDB ( bool bUse = true)
inline

Definition at line 983 of file geo_tools.h.

◆ CSG_Projection


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