User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_cscoordinatesystem.distancefromcs_tgis_cscoordinatesystem_tgis_point_tgis_cscoordinatesystem_tgis_point

Table of Contents

TGIS_CSCoordinateSystem.DistanceFromCS method

DK11 for .NET | TatukGIS.NDK.TGIS_CSCoordinateSystem.DistanceFromCS | Constructors | Fields | Methods | Properties

Calculates ellipsoidal distance (expressed in meters) based on current coordinate system.

Available also on: Delphi | Java | ActiveX.

Syntax

// C#
public double DistanceFromCS(
  TGIS_CSCoordinateSystem _from_cs,
  TGIS_Point _from,
  TGIS_CSCoordinateSystem _to_cs,
  TGIS_Point _to
);
' VisualBasic
Public Function DistanceFromCS(
  ByVal _from_cs As TGIS_CSCoordinateSystem,
  ByVal _from As TGIS_Point,
  ByVal _to_cs As TGIS_CSCoordinateSystem,
  ByVal _to As TGIS_Point
) As Double
// Oxygene
public
  function DistanceFromCS(
    _from_cs : TGIS_CSCoordinateSystem;
    _from : TGIS_Point;
    _to_cs : TGIS_CSCoordinateSystem;
    _to : TGIS_Point
  ) : Double;

Parameters

Name Type Description
_from_cs TGIS_CSCoordinateSystem coordinate system of the first coordinate
_from TGIS_Point first coordinate
_to_cs TGIS_CSCoordinateSystem coordinate system of the first coordinate
_to TGIS_Point first coordinate

Result

Type Description
double
Double
distance value or -1 if distance can not be computed

Remarks

For calculations within same coordinate system see Distance().

2020/05/07 01:15

Page Tools