User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.distance2partcs_itgis_point_double_integer_itgis_point

Table of Contents

ITGIS_Shape.Distance2PartCS method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_Shape.Distance2PartCS | Methods | Properties

Calculate the WGS84 distance between a point and a part in the current shape.

Available also on: Delphi | .NET | Java.

Syntax

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

Parameters

Name Type Description
_ptg ITGIS_Point reference point
_prec double
Double
precision /not longer distance than/; point inside polygon is always not greater than _prec; if _prec less then 0 then being outside/inside polygon means the same;
_part int
Integer
part number to which the distance will be computed
_proj ITGIS_Point point projected to a nearest element of the shape

Result

Type Description
double
Double
Distance in meters (if CS of layers are known).
2020/05/07 01:04

Page Tools