SAGA API
v9.6
|
#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) { 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()); } |
#define | ADD_INFO(name, 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()); } |
#define | ADD_CONT(name, entry) if( entry ) { ADD_INFO(name, entry->Get_Content() ); } |
#define | ADD_PROP(name, entry, prop) if( entry && entry->Get_Property(prop) ) { ADD_INFO(name, entry->Get_Property(prop)); } |
#define | CMP_CONTENT(a, b) (a && b && a->Cmp_Content(b->Get_Content())) |
#define | CMP_PROPERTY(a, b, p) (a && b && a->Get_Property(p) && b->Cmp_Property(p, a->Get_Property(p), true)) |
#define | CMP_PARAMETER(a, b) (a && b && ((!a->Cmp_Name("PARAMETER") && !b->Cmp_Name("PARAMETER")) || CMP_PROPERTY(a, b, "name") && a->Cmp_Content(b->Get_Content()))) |
#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_Projections & | SG_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 |
#define ADD_CONT | ( | name, | |
entry | |||
) | if( entry ) { ADD_INFO(name, entry->Get_Content() ); } |
#define ADD_HEAD | ( | name, | |
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()); } |
#define ADD_INFO | ( | name, | |
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()); } |
#define ADD_PROP | ( | name, | |
entry, | |||
prop | |||
) | if( entry && entry->Get_Property(prop) ) { ADD_INFO(name, entry->Get_Property(prop)); } |
#define CMP_CONTENT | ( | a, | |
b | |||
) | (a && b && a->Cmp_Content(b->Get_Content())) |
#define CMP_PARAMETER | ( | a, | |
b | |||
) | (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 | |||
) | (a && b && a->Get_Property(p) && b->Cmp_Property(p, a->Get_Property(p), true)) |
#define CMP_TOWGS84 | ( | id | ) |
enum 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 689 of file projections.cpp.
bool SG_Get_Projected | ( | const CSG_Projection & | Source, |
const CSG_Projection & | Target, | ||
TSG_Point & | Point | ||
) |
Definition at line 2664 of file projections.cpp.
References CSG_Parameter::asDouble(), CSG_Tool_Library_Manager::Create_Tool(), CSG_Tool_Library_Manager::Delete_Tool(), CSG_Tool::Execute(), CSG_Tool::Get_Parameter(), CSG_Projection::Get_WKT(), CSG_Projection::is_Okay(), CSG_Tool::Set_Callback(), CSG_Tool::Set_Manager(), CSG_Tool::Set_Parameter(), SG_Get_Tool_Library_Manager(), SG_UI_ProgressAndMsg_Lock(), SSG_Point::x, and SSG_Point::y.
bool SG_Get_Projected | ( | const CSG_Projection & | Source, |
const CSG_Projection & | Target, | ||
TSG_Rect & | Rectangle | ||
) |
Definition at line 2704 of file projections.cpp.
References CSG_Shape::Add_Point(), CSG_Shapes::Add_Shape(), CSG_Projection::Create(), CSG_Shapes::Get_Extent(), CSG_Data_Object::Get_Projection(), CSG_Projection::is_Okay(), SG_Get_Projected(), SHAPE_TYPE_Point, SSG_Rect::xMax, SSG_Rect::xMin, SSG_Rect::yMax, and SSG_Rect::yMin.
bool SG_Get_Projected | ( | CSG_Shapes * | pSource, |
CSG_Shapes * | pTarget, | ||
const CSG_Projection & | Target | ||
) |
Definition at line 2623 of file projections.cpp.
References CSG_Data_Manager::Add(), CSG_Shapes::Create(), CSG_Tool_Library_Manager::Create_Tool(), CSG_Data_Manager::Delete(), CSG_Tool_Library_Manager::Delete_Tool(), CSG_Tool::Execute(), CSG_Data_Object::Get_Projection(), CSG_Projection::Get_WKT(), CSG_Projection::is_Okay(), CSG_Shapes::is_Valid(), CSG_Tool::Set_Callback(), CSG_Tool::Set_Manager(), CSG_Tool::Set_Parameter(), SG_Get_Tool_Library_Manager(), and SG_UI_ProgressAndMsg_Lock().
Referenced by SG_Get_Projected().
CSG_Projections& SG_Get_Projections | ( | void | ) |
Definition at line 69 of file projections.cpp.
References gSG_Projections.
Referenced by SG_Initialize_Environment().
Definition at line 2739 of file projections.cpp.
References CSG_Grid::Create(), CSG_Data_Object::Get_Projection(), CSG_Grid::Get_System(), CSG_Projection::is_Okay(), CSG_Grid::is_Valid(), SG_RUN_TOOL, and SG_TOOL_PARAMETER_SET.
CSG_Projections gSG_Projections |
Definition at line 66 of file projections.cpp.
Referenced by CSG_Projection::Create(), CSG_Projections::Parse(), and SG_Get_Projections().