SAGA API  v9.6
shapes_clipper.cpp File Reference
#include "shapes.h"
#include "clipper2/clipper.h"

Go to the source code of this file.

Functions

bool SG_Shape_Get_Intersection (CSG_Shape *pShape, CSG_Shape_Polygon *pClip, CSG_Shape *pSolution)
 
bool SG_Shape_Get_Difference (CSG_Shape *pShape, CSG_Shape_Polygon *pClip, CSG_Shape *pSolution)
 
bool SG_Shape_Get_ExclusiveOr (CSG_Shape *pShape, CSG_Shape_Polygon *pClip, CSG_Shape *pSolution)
 
bool SG_Shape_Get_Union (CSG_Shape *pShape, CSG_Shape_Polygon *pClip, CSG_Shape *pSolution)
 
bool SG_Shape_Get_Dissolve (CSG_Shape *pShape, CSG_Shape *pSolution)
 
bool SG_Shape_Get_Offset (CSG_Shape *pShape, double Size, double dArc, CSG_Shape *pSolution)
 
const char * SG_Clipper_Get_Version (void)
 

Function Documentation

◆ SG_Clipper_Get_Version()

const char* SG_Clipper_Get_Version ( void  )

Definition at line 407 of file shapes_clipper.cpp.

◆ SG_Shape_Get_Difference()

bool SG_Shape_Get_Difference ( CSG_Shape pShape,
CSG_Shape_Polygon pClip,
CSG_Shape pSolution 
)

◆ SG_Shape_Get_Dissolve()

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.

◆ SG_Shape_Get_ExclusiveOr()

◆ SG_Shape_Get_Intersection()

bool SG_Shape_Get_Intersection ( CSG_Shape pShape,
CSG_Shape_Polygon pClip,
CSG_Shape pSolution 
)

◆ SG_Shape_Get_Offset()

bool SG_Shape_Get_Offset ( CSG_Shape pShape,
double  Size,
double  dArc,
CSG_Shape pSolution 
)

Definition at line 396 of file shapes_clipper.cpp.

◆ SG_Shape_Get_Union()