User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_layercompoundvector.locateex_itgis_point_double_integer_double_integer_itgis_point_wordbool

Table of Contents

ITGIS_LayerCompoundVector.LocateEx method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerCompoundVector.LocateEx | Methods | Properties

Locate a shape (more precise).

Available also on: Delphi | .NET | Java.

Syntax

// C#
public ITGIS_Shape LocateEx(
  ITGIS_Point _ptg,
  double _prec,
  int _uid,
  ref double _dist,
  ref int _part,
  ref ITGIS_Point _proj,
  WordBool _visible
);
' VisualBasic
Public Function LocateEx(
  ByVal _ptg As ITGIS_Point,
  ByVal _prec As Double,
  ByVal _uid As Integer,
  ByRef _dist As Double,
  ByRef _part As Integer,
  ByRef _proj As ITGIS_Point,
  ByVal _visible As WordBool
) As ITGIS_Shape
// Oxygene
public
  function LocateEx(
    _ptg : ITGIS_Point;
    _prec : Double;
    _uid : Integer;
    var _dist : Double;
    var _part : Integer;
    var _proj : ITGIS_Point;
    _visible : WordBool
  ) : ITGIS_Shape;

Parameters

Name Type Description
_ptg ITGIS_Point reference point /searching point/ in a layer;
_prec double
Double
precision /not a longer distance than/;
_uid int
Integer
Uid of reference shape or -1; thanks to this, is possible to find nearest shape, excluding shape given by _uid.
_dist double
Double
reached distance between _pt and shape in Result;
_part int
Integer
number of the part closest to a given point
_proj ITGIS_Point point projected to the nearest element of a shape
_visible WordBool if true the only visible shapes will be evaluated;

Result

Type Description
ITGIS_Shape found shape or nil
2020/05/07 01:03

Page Tools