User Tools

Site Tools


api:dk11:delphi:giscssystems.tgis_cscoordinatesystem.distancefromcs_tgis_cscoordinatesystem_tgis_point_tgis_cscoordinatesystem_tgis_point

Table of Contents

TGIS_CSCoordinateSystem.DistanceFromCS method

DK11 for Delphi | GisCsSystems.TGIS_CSCoordinateSystem.DistanceFromCS | Constructors | Fields | Methods | Properties

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

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function DistanceFromCS(
    const _from_cs : TGIS_CSCoordinateSystem;
    const _from : TGIS_Point;
    const _to_cs : TGIS_CSCoordinateSystem;
    const _to : TGIS_Point
  ) : Double;
// C++ Builder
public:
  double DistanceFromCS(
    TGIS_CSCoordinateSystem* const _from_cs,
    TGIS_Point* const _from,
    TGIS_CSCoordinateSystem* const _to_cs,
    TGIS_Point* const _to
  );

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 distance value or -1 if distance can not be computed

Remarks

For calculations within same coordinate system see Distance().

2020/05/07 01:06

Page Tools