SAGA API
v9.6
|
#include "table.h"
Go to the source code of this file.
Classes | |
class | CSG_Shape |
class | CSG_Shape_Point |
class | CSG_Shape_Point_Z |
class | CSG_Shape_Point_ZM |
class | CSG_Shape_Part |
class | CSG_Shape_Points |
class | CSG_Shape_Line |
class | CSG_Shape_Polygon_Part |
class | CSG_Shape_Polygon |
class | CSG_Shapes |
class | CSG_PRQuadTree_Item |
class | CSG_PRQuadTree_Leaf |
class | CSG_PRQuadTree_Leaf_List |
class | CSG_PRQuadTree_Node |
class | CSG_PRQuadTree_Node_Statistics |
class | CSG_PRQuadTree |
class | CSG_KDTree |
class | CSG_KDTree_2D |
class | CSG_KDTree_3D |
class | CSG_Parameters_Point_Search |
class | CSG_Parameters_Point_Search_KDTree_2D |
class | CSG_Shapes_OGIS_Converter |
class | CSG_Grid_OGIS_Converter |
The vector data container, a specialized CSG_Table class following a geometry object based approach.
Definition in file shapes.h.
enum ESG_OGIS_ByteOrder |
enum TSG_Shape_Type |
enum TSG_Vertex_Type |
SAGA_API_DLL_EXPORT const char* SG_Clipper_Get_Version | ( | void | ) |
Definition at line 407 of file shapes_clipper.cpp.
SAGA_API_DLL_EXPORT CSG_Shapes* SG_Create_Shapes | ( | const char * | File | ) |
SAGA_API_DLL_EXPORT CSG_Shapes* SG_Create_Shapes | ( | const CSG_Shapes & | Shapes | ) |
Safe shapes construction
Definition at line 91 of file shapes.cpp.
References CSG_Shapes::Get_ObjectType(), SG_Create_PointCloud(), SG_DATAOBJECT_TYPE_PointCloud, and SG_DATAOBJECT_TYPE_Shapes.
SAGA_API_DLL_EXPORT CSG_Shapes* SG_Create_Shapes | ( | const CSG_String & | File | ) |
Safe shapes construction
Definition at line 109 of file shapes.cpp.
References CSG_Shapes::is_Valid().
SAGA_API_DLL_EXPORT CSG_Shapes* SG_Create_Shapes | ( | const wchar_t * | File | ) |
SAGA_API_DLL_EXPORT CSG_Shapes* SG_Create_Shapes | ( | CSG_Shapes * | pTemplate | ) |
Safe shapes construction
Definition at line 123 of file shapes.cpp.
References CSG_Data_Object::Get_Name(), CSG_Shapes::Get_ObjectType(), CSG_Shapes::Get_Type(), CSG_Shapes::Get_Vertex_Type(), SG_Create_PointCloud(), SG_DATAOBJECT_TYPE_PointCloud, and SG_DATAOBJECT_TYPE_Shapes.
SAGA_API_DLL_EXPORT CSG_Shapes* SG_Create_Shapes | ( | TSG_Shape_Type | Type, |
const SG_Char * | Name = NULL , |
||
CSG_Table * | pTemplate = NULL , |
||
TSG_Vertex_Type | Vertex_Type = SG_VERTEX_TYPE_XY |
||
) |
Safe shapes construction
Definition at line 117 of file shapes.cpp.
SAGA_API_DLL_EXPORT CSG_Shapes* SG_Create_Shapes | ( | void | ) |
Safe shapes construction
Definition at line 85 of file shapes.cpp.
Referenced by SG_Create_Shapes(), and SG_Create_Table().
SAGA_API_DLL_EXPORT CSG_String SG_Get_ShapeType_Name | ( | TSG_Shape_Type | Type | ) |
Definition at line 65 of file shapes.cpp.
References _TL, SHAPE_TYPE_Line, SHAPE_TYPE_Point, SHAPE_TYPE_Points, and SHAPE_TYPE_Polygon.
SAGA_API_DLL_EXPORT bool SG_Shape_Get_Difference | ( | CSG_Shape * | pSubject, |
CSG_Shape_Polygon * | pClip, | ||
CSG_Shape * | pSolution = NULL |
||
) |
Definition at line 313 of file shapes_clipper.cpp.
References _SG_Polygon_Clip(), CSG_Shape::Assign(), INTERSECTION_Contained, INTERSECTION_Contains, INTERSECTION_Identical, INTERSECTION_None, INTERSECTION_Overlaps, and CSG_Shape::Intersects().
SAGA_API_DLL_EXPORT bool SG_Shape_Get_Dissolve | ( | CSG_Shape * | pShape, |
CSG_Shape * | pSolution | ||
) |
Assuming supplied shape object is of type polygon and has several parts, it is important that the point order of outer rings (i.e. not lakes) is clockwise, that of lakes counter-clockwise to be processed correctly by the Clipper dissolve function. This is in accordance with the simple features definition but in contrast to ESRI's Shapefile format.
Definition at line 390 of file shapes_clipper.cpp.
References CSG_Shape::Get_Extent().
SAGA_API_DLL_EXPORT bool SG_Shape_Get_ExclusiveOr | ( | CSG_Shape * | pSubject, |
CSG_Shape_Polygon * | pClip, | ||
CSG_Shape * | pSolution = NULL |
||
) |
Definition at line 331 of file shapes_clipper.cpp.
References _SG_Polygon_Clip(), CSG_Shape::Add_Part(), CSG_Shape::Add_Point(), CSG_Shape::Assign(), CSG_Shape_Points::Get_Part(), CSG_Shape_Points::Get_Part_Count(), CSG_Shape::Get_Part_Count(), CSG_Shape_Points::Get_Point(), CSG_Shape_Points::Get_Point_Count(), INTERSECTION_Contained, INTERSECTION_Contains, INTERSECTION_Identical, INTERSECTION_None, INTERSECTION_Overlaps, and CSG_Shape::Intersects().
SAGA_API_DLL_EXPORT bool SG_Shape_Get_Intersection | ( | CSG_Shape * | pSubject, |
CSG_Shape_Polygon * | pClip, | ||
CSG_Shape * | pSolution = NULL |
||
) |
Definition at line 293 of file shapes_clipper.cpp.
References _SG_Polygon_Clip(), CSG_Shape::Assign(), INTERSECTION_Contained, INTERSECTION_Contains, INTERSECTION_Identical, INTERSECTION_None, INTERSECTION_Overlaps, and CSG_Shape::Intersects().
SAGA_API_DLL_EXPORT bool SG_Shape_Get_Offset | ( | CSG_Shape * | pSubject, |
double | Size, | ||
double | dArc, | ||
CSG_Shape * | pSolution = NULL |
||
) |
Definition at line 396 of file shapes_clipper.cpp.
References CSG_Shape::Get_Extent(), CSG_Shape::Get_Type(), CSG_Rect::Inflate(), and SHAPE_TYPE_Polygon.
SAGA_API_DLL_EXPORT bool SG_Shape_Get_Union | ( | CSG_Shape * | pSubject, |
CSG_Shape_Polygon * | pClip, | ||
CSG_Shape * | pSolution = NULL |
||
) |
Definition at line 355 of file shapes_clipper.cpp.
References _SG_Polygon_Clip(), CSG_Shape::Add_Part(), CSG_Shape::Add_Point(), CSG_Shape::Assign(), CSG_Shape_Points::Get_Part(), CSG_Shape_Points::Get_Part_Count(), CSG_Shape::Get_Part_Count(), CSG_Shape_Points::Get_Point(), CSG_Shape_Points::Get_Point_Count(), INTERSECTION_Contained, INTERSECTION_Contains, INTERSECTION_Identical, INTERSECTION_None, INTERSECTION_Overlaps, and CSG_Shape::Intersects().
SAGA_API_DLL_EXPORT CSG_String SG_Shapes_Get_File_Extension_Default | ( | void | ) |
Definition at line 124 of file shapes_io.cpp.
References gSG_Shape_File_Format_Default, SHAPE_FILE_FORMAT_ESRI, SHAPE_FILE_FORMAT_GeoJSON, and SHAPE_FILE_FORMAT_GeoPackage.
SAGA_API_DLL_EXPORT TSG_Shape_File_Format SG_Shapes_Get_File_Format_Default | ( | void | ) |
Definition at line 118 of file shapes_io.cpp.
References gSG_Shape_File_Format_Default.
SAGA_API_DLL_EXPORT bool SG_Shapes_Set_File_Format_Default | ( | int | Format | ) |
Definition at line 103 of file shapes_io.cpp.
References gSG_Shape_File_Format_Default, SHAPE_FILE_FORMAT_ESRI, SHAPE_FILE_FORMAT_GeoJSON, and SHAPE_FILE_FORMAT_GeoPackage.