SAGA API v9.10
Loading...
Searching...
No Matches
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)
 CSG_Projection (const CSG_String &WKT2, const CSG_String &PROJ)
bool Create (const CSG_String &WKT2, const CSG_String &PROJ)
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
CSG_String Get_WKT1 (void) const
const CSG_StringGet_WKT2 (void) const
const CSG_StringGet_PROJ (void) const
CSG_String Get_JSON (void) const
CSG_String Get_ESRI (void) const
CSG_String Get_XML (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_Geodetic (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 826 of file geo_tools.h.

Constructor & Destructor Documentation

◆ CSG_Projection() [1/7]

CSG_Projection::CSG_Projection ( void )

◆ ~CSG_Projection()

CSG_Projection::~CSG_Projection ( void )
virtual

Definition at line 87 of file projections.cpp.

◆ CSG_Projection() [2/7]

CSG_Projection::CSG_Projection ( const CSG_Projection & Projection)

Definition at line 91 of file projections.cpp.

References Create(), CSG_Projection(), and Projection.

◆ CSG_Projection() [3/7]

CSG_Projection::CSG_Projection ( const char * Definition)

Definition at line 111 of file projections.cpp.

References Create().

◆ CSG_Projection() [4/7]

CSG_Projection::CSG_Projection ( const wchar_t * Definition)

Definition at line 129 of file projections.cpp.

References Create().

◆ CSG_Projection() [5/7]

CSG_Projection::CSG_Projection ( const CSG_String & Definition)

Definition at line 147 of file projections.cpp.

References Create().

◆ CSG_Projection() [6/7]

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

Definition at line 190 of file projections.cpp.

References Create(), and SG_Char.

◆ CSG_Projection() [7/7]

CSG_Projection::CSG_Projection ( const CSG_String & WKT2,
const CSG_String & PROJ )

Definition at line 206 of file projections.cpp.

References Create(), PROJ, and WKT2.

Member Function Documentation

◆ Assign() [1/3]

bool CSG_Projection::Assign ( const CSG_Projection & Projection)
inline

Definition at line 859 of file geo_tools.h.

References Create(), CSG_Projection(), and Projection.

◆ Assign() [2/3]

bool CSG_Projection::Assign ( const CSG_String & Definition)
inline

Definition at line 860 of file geo_tools.h.

References Create().

◆ Assign() [3/3]

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

Definition at line 861 of file geo_tools.h.

References Create(), and SG_Char.

◆ Create() [1/6]

bool CSG_Projection::Create ( const char * Definition)

Definition at line 116 of file projections.cpp.

References Create(), and Destroy().

◆ Create() [2/6]

◆ Create() [3/6]

bool CSG_Projection::Create ( const CSG_String & Definition)

◆ Create() [4/6]

bool CSG_Projection::Create ( const CSG_String & WKT2,
const CSG_String & PROJ )

Definition at line 211 of file projections.cpp.

References Create(), CSG_Projections::Get_CRS_Type(), PROJ, WKT, and WKT2.

◆ Create() [5/6]

bool CSG_Projection::Create ( const wchar_t * Definition)

Definition at line 134 of file projections.cpp.

References Create(), and Destroy().

◆ Create() [6/6]

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

Definition at line 195 of file projections.cpp.

References Create(), CSG_String::Format(), gSG_Projections, SG_Char, and SG_T.

◆ Destroy()

void CSG_Projection::Destroy ( void )

Definition at line 235 of file projections.cpp.

References _TL, and Undefined.

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

◆ Get_Authority()

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

Definition at line 894 of file geo_tools.h.

◆ Get_Authority_ID()

int CSG_Projection::Get_Authority_ID ( void ) const
inline

Definition at line 898 of file geo_tools.h.

◆ Get_Code()

int CSG_Projection::Get_Code ( void ) const
inline

Definition at line 895 of file geo_tools.h.

◆ Get_Description()

◆ Get_EPSG()

int CSG_Projection::Get_EPSG ( void ) const
inline

Definition at line 899 of file geo_tools.h.

Referenced by CSG_Grid_OGIS_Converter::to_WKBinary().

◆ Get_ESRI()

CSG_String CSG_Projection::Get_ESRI ( void ) const

Definition at line 366 of file projections.cpp.

References ESRI, and CSG_Projections::Parse().

Referenced by Save().

◆ Get_GCS_WGS84()

const CSG_Projection & CSG_Projection::Get_GCS_WGS84 ( void )
static

Definition at line 629 of file projections.cpp.

References CSG_Projection(), is_Okay(), and Set_GCS_WGS84().

◆ Get_JSON()

CSG_String CSG_Projection::Get_JSON ( void ) const

Definition at line 360 of file projections.cpp.

References JSON, and CSG_Projections::Parse().

Referenced by Save().

◆ Get_Name()

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

Definition at line 885 of file geo_tools.h.

◆ Get_PROJ()

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

Definition at line 890 of file geo_tools.h.

Referenced by Save(), SG_Get_Projected(), and SG_Get_Projected().

◆ Get_Proj4()

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

Definition at line 897 of file geo_tools.h.

◆ Get_Type()

ESG_CRS_Type CSG_Projection::Get_Type ( void ) const
inline

Definition at line 906 of file geo_tools.h.

Referenced by is_Equal().

◆ Get_Type_Identifier()

CSG_String CSG_Projection::Get_Type_Identifier ( void ) const

Definition at line 594 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 600 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 910 of file geo_tools.h.

◆ Get_Unit_Identifier()

CSG_String CSG_Projection::Get_Unit_Identifier ( void ) const

Definition at line 606 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 612 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 618 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 686 of file projections.cpp.

References CSG_Projection(), and Projection.

◆ Get_WKT()

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

Definition at line 887 of file geo_tools.h.

◆ Get_WKT1()

CSG_String CSG_Projection::Get_WKT1 ( void ) const

Definition at line 354 of file projections.cpp.

References CSG_Projections::Parse(), and WKT1.

Referenced by is_Equal(), and Save().

◆ Get_WKT2()

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

Definition at line 889 of file geo_tools.h.

Referenced by Get_Description(), Save(), SG_Get_Projected(), and SG_Get_Projected().

◆ Get_XML()

CSG_String CSG_Projection::Get_XML ( void ) const

Definition at line 372 of file projections.cpp.

◆ 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 903 of file geo_tools.h.

References Geocentric.

◆ is_Geodetic()

bool CSG_Projection::is_Geodetic ( void ) const
inline

Definition at line 902 of file geo_tools.h.

References Geodetic.

Referenced by Get_Description(), and is_Equal().

◆ is_Geographic()

bool CSG_Projection::is_Geographic ( void ) const
inline

Definition at line 901 of file geo_tools.h.

References Geographic.

Referenced by Get_Description(), and is_Equal().

◆ is_Okay()

◆ is_Projection()

bool CSG_Projection::is_Projection ( void ) const
inline

Definition at line 904 of file geo_tools.h.

References Projection.

Referenced by Get_Description(), and is_Equal().

◆ Load() [1/3]

bool CSG_Projection::Load ( const CSG_MetaData & Projection)

Definition at line 316 of file projections.cpp.

References Create(), and Projection.

◆ Load() [2/3]

bool CSG_Projection::Load ( const CSG_String & File)

Definition at line 253 of file projections.cpp.

References Load(), and SG_FILE_R.

Referenced by Load().

◆ Load() [3/3]

bool CSG_Projection::Load ( CSG_File & Stream)

◆ operator!=()

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

Definition at line 866 of file geo_tools.h.

References CSG_Projection(), is_Equal(), and Projection.

◆ operator=() [1/5]

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

Definition at line 842 of file geo_tools.h.

References Create(), and CSG_Projection().

◆ operator=() [2/5]

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

Definition at line 838 of file geo_tools.h.

References Create(), CSG_Projection(), and Projection.

◆ operator=() [3/5]

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

Definition at line 850 of file geo_tools.h.

References Create(), and CSG_Projection().

◆ operator=() [4/5]

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

Definition at line 846 of file geo_tools.h.

References Create(), and CSG_Projection().

◆ operator=() [5/5]

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

Definition at line 854 of file geo_tools.h.

References Create(), and CSG_Projection().

◆ operator==()

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

Definition at line 865 of file geo_tools.h.

References CSG_Projection(), is_Equal(), and Projection.

◆ Save() [1/3]

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

Definition at line 261 of file projections.cpp.

References is_Okay(), Save(), SG_File_Delete(), SG_File_Exists(), and SG_FILE_W.

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

◆ Save() [2/3]

◆ Save() [3/3]

bool CSG_Projection::Save ( CSG_MetaData & Projection) const

Definition at line 337 of file projections.cpp.

References Projection.

◆ Set_GCS_WGS84()

bool CSG_Projection::Set_GCS_WGS84 ( void )

Definition at line 642 of file projections.cpp.

References Geographic, and Undefined.

Referenced by Get_GCS_WGS84().

◆ Set_UTM_WGS84()

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

Definition at line 696 of file projections.cpp.

References Create(), and WKT.

◆ CSG_Projections

friend class CSG_Projections
friend

Definition at line 828 of file geo_tools.h.

References Create(), CSG_Projection(), CSG_Projections, Destroy(), and Projection.

Referenced by CSG_Projections.


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