User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_cscoordinatesystem.distancefromcs_itgis_cscoordinatesystem_itgis_point_itgis_cscoordinatesystem_itgis_point

Table of Contents

ITGIS_CSCoordinateSystem.DistanceFromCS method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_CSCoordinateSystem.DistanceFromCS | Methods | Properties

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

Available also on: Delphi | .NET | Java.

Syntax

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

Parameters

Name Type Description
_from_cs ITGIS_CSCoordinateSystem coordinate system of the first coordinate
_from ITGIS_Point first coordinate
_to_cs ITGIS_CSCoordinateSystem coordinate system of the first coordinate
_to ITGIS_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:03

Page Tools