User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.distancecs_itgis_point_double

Table of Contents

ITGIS_Shape.DistanceCS method

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

Calculate WGS84 distance between a point and the shape.

Available also on: Delphi | .NET | Java.

Syntax

// C#
public double DistanceCS(
  ITGIS_Point _ptg,
  double _prec
);
' VisualBasic
Public Function DistanceCS(
  ByVal _ptg As ITGIS_Point,
  ByVal _prec As Double
) As Double
// Oxygene
public
  function DistanceCS(
    _ptg : ITGIS_Point;
    _prec : Double
  ) : Double;

Parameters

Name Type Description
_ptg ITGIS_Point reference point
_prec double
Double
precision /not longer distance than/; point inside the polygon is always not greater then _prec; if _prec less than 0, then being outside/inside polygon means the same;

Result

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

Page Tools