SAGA API v9.10
Loading...
Searching...
No Matches
projections.cpp File Reference
#include "geo_tools.h"
#include "table.h"
#include "shapes.h"
#include "data_manager.h"
#include "tool_library.h"

Go to the source code of this file.

Macros

#define ADD_HEAD(name, value)
#define ADD_INFO(name, value)
#define ADD_CONT(name, entry)
#define ADD_PROP(name, entry, prop)
#define CMP_CONTENT(a, b)
#define CMP_PROPERTY(a, b, p)
#define CMP_PARAMETER(a, b)
#define CMP_TOWGS84(id)

Enumerations

enum  ESG_PROJ_FIELD_ID {
  PRJ_FIELD_SRID = 0 , PRJ_FIELD_AUTH_NAME , PRJ_FIELD_AUTH_SRID , PRJ_FIELD_SRTEXT ,
  PRJ_FIELD_PROJ4TEXT
}

Functions

CSG_ProjectionsSG_Get_Projections (void)
bool SG_Get_Projected (CSG_Shapes *pSource, CSG_Shapes *pTarget, const CSG_Projection &Target)
bool SG_Get_Projected (const CSG_Projection &Source, const CSG_Projection &Target, TSG_Point &Point)
bool SG_Get_Projected (const CSG_Projection &Source, const CSG_Projection &Target, TSG_Rect &Rectangle)
bool SG_Grid_Get_Geographic_Coordinates (CSG_Grid *pGrid, CSG_Grid *pLon, CSG_Grid *pLat)

Variables

CSG_Projections gSG_Projections

Macro Definition Documentation

◆ ADD_CONT

#define ADD_CONT ( name,
entry )
Value:
if( entry ) { ADD_INFO(name, entry->Get_Content() ); }
#define ADD_INFO(name, value)

Referenced by CSG_Projection::Get_Description().

◆ ADD_HEAD

#define ADD_HEAD ( name,
value )
Value:
{ CSG_String n(name), v(value); n.Replace("_", " "); v.Replace("_", " "); s += CSG_String::Format("<tr><th>%s</th><th>%s</th></tr>", n.c_str(), v.c_str()); }
static CSG_String Format(const char *Format,...)

Referenced by CSG_Projection::Get_Description().

◆ ADD_INFO

#define ADD_INFO ( name,
value )
Value:
{ CSG_String n(name), v(value); n.Replace("_", " "); v.Replace("_", " "); s += CSG_String::Format("<tr><td>%s</td><td>%s</td></tr>", n.c_str(), v.c_str()); }

Referenced by CSG_Projection::Get_Description().

◆ ADD_PROP

#define ADD_PROP ( name,
entry,
prop )
Value:
if( entry && entry->Get_Property(prop) ) { ADD_INFO(name, entry->Get_Property(prop)); }

Referenced by CSG_Projection::Get_Description().

◆ CMP_CONTENT

#define CMP_CONTENT ( a,
b )
Value:
(a && b && a->Cmp_Content(b->Get_Content()))

Referenced by CSG_Projection::is_Equal().

◆ CMP_PARAMETER

#define CMP_PARAMETER ( a,
b )
Value:
(a && b && ((!a->Cmp_Name("PARAMETER") && !b->Cmp_Name("PARAMETER")) || (CMP_PROPERTY(a, b, "name") && a->Cmp_Content(b->Get_Content()))))
#define CMP_PROPERTY(a, b, p)

Referenced by CSG_Projection::is_Equal().

◆ CMP_PROPERTY

#define CMP_PROPERTY ( a,
b,
p )
Value:
(a && b && a->Get_Property(p) && b->Cmp_Property(p, a->Get_Property(p), true))

Referenced by CSG_Projection::is_Equal().

◆ CMP_TOWGS84

#define CMP_TOWGS84 ( id)
Value:
(\
((*pGCS[0])("DATUM.TOWGS84." id) ? (*pGCS[0])["DATUM.TOWGS84." id].Get_Content().asDouble() : 0.)\
== ((*pGCS[1])("DATUM.TOWGS84." id) ? (*pGCS[1])["DATUM.TOWGS84." id].Get_Content().asDouble() : 0.) )

Referenced by CSG_Projection::is_Equal().

Enumeration Type Documentation

◆ ESG_PROJ_FIELD_ID

Enumerator
PRJ_FIELD_SRID 
PRJ_FIELD_AUTH_NAME 
PRJ_FIELD_AUTH_SRID 
PRJ_FIELD_SRTEXT 
PRJ_FIELD_PROJ4TEXT 

Definition at line 759 of file projections.cpp.

Function Documentation

◆ SG_Get_Projected() [1/3]

◆ SG_Get_Projected() [2/3]

◆ SG_Get_Projected() [3/3]

◆ SG_Get_Projections()

CSG_Projections & SG_Get_Projections ( void )

◆ SG_Grid_Get_Geographic_Coordinates()

bool SG_Grid_Get_Geographic_Coordinates ( CSG_Grid * pGrid,
CSG_Grid * pLon,
CSG_Grid * pLat )

Variable Documentation

◆ gSG_Projections

CSG_Projections gSG_Projections