User Tools

Site Tools


api:dk11:delphi:gislayervector.tgis_shape.distancecs_tgis_point_double

Table of Contents

TGIS_Shape.DistanceCS method

DK11 for Delphi | GisLayerVector.TGIS_Shape.DistanceCS | Constructors | Fields | Methods | Properties

Calculate WGS84 distance between a point and the shape.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function DistanceCS(
    const _ptg : TGIS_Point;
    const _prec : Double
  ) : Double; virtual;
// C++ Builder
public:
  virtual double DistanceCS(
    TGIS_Point* const _ptg,
    const double _prec
  );

Parameters

Name Type Description
_ptg TGIS_Point reference point
_prec 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 Distance between shapes in meters (if CS of layers are known).
2020/05/07 01:09

Page Tools