DK11 for ActiveX | TatukGIS_XDK11.ITGIS_Topology.Combine_2 | Methods | Properties
Compute a new shape from the two shapes provided, based on a given operation.
// C# public ITGIS_Shape Combine_2( ITGIS_Shape _shpA, ITGIS_Shape _shpB, TGIS_TopologyCombineType _operation, WordBool _fixshape );
' VisualBasic Public Function Combine_2( ByVal _shpA As ITGIS_Shape, ByVal _shpB As ITGIS_Shape, ByVal _operation As TGIS_TopologyCombineType, ByVal _fixshape As WordBool ) As ITGIS_Shape
// Oxygene public function Combine_2( _shpA : ITGIS_Shape; _shpB : ITGIS_Shape; _operation : TGIS_TopologyCombineType; _fixshape : WordBool ) : ITGIS_Shape;
Name | Type | Description |
---|---|---|
_shpA | ITGIS_Shape | first shape |
_shpB | ITGIS_Shape | second shape |
_operation | TGIS_TopologyCombineType | operation code; what kind of operation should be perform between (_shpA) and (_shpB) |
_fixshape | WordBool | if True, then checks and eventually fixes the input shapes for common topological problems, like self-crossings, overlapped parts etc. |
Type | Description |
---|---|
ITGIS_Shape | returns new shape combined out of two others based on given type of operation |
See TGIS_Shape.Combine for example.
Tip for Intersection
operation
When using with many shapes e.g. in loop, check input shapes extents before to improve performance.
// pseudocode: if GisIsCommonExtent(_shpA, _shpB) out = TGIS_Topology.Combine(_shpA, _shpB, TGIS_TopologyCombineType.Intersection) ;