User Tools

Site Tools


api:dk11:delphi:gistopology.tgis_topology.intersect_tgis_shape_tgis_shape

Table of Contents

TGIS_Topology.Intersect method

DK11 for Delphi | GisTopology.TGIS_Topology.Intersect | Constructors | Methods | Properties | Events

Test intersects relationship for given shapes

Available also on: .NET | Java | ActiveX | Python.

Syntax

// Delphi
public
  function Intersect(
    const _shpA : TGIS_Shape;
    const _shpB : TGIS_Shape
  ) : Boolean;
// C++ Builder
public:
  bool Intersect(
    TGIS_Shape* const _shpA,
    TGIS_Shape* const _shpB
  );

Parameters

Name Type Description
_shpA TGIS_Shape given shape
_shpB TGIS_Shape second given shape

Result

Type Description
Boolean returns true if shapes are intersecting

Example

Delphi

tpl := TGIS_Topology.Create ;
try
  res := tpl.Intersect( shp_a, shp_b ) ;
finally
  tpl.Free ;
end ;
 
// or simpler:
res := shp_a.Intersect( shp_b ) ;
2022/11/30 19:19

Page Tools