GeodesicDistanceMeters

ページ プロパティ、計測と地理空間

説明

WGS 84 の緯度経度の組 2 つ間の地上距離をメートルで返します

構文

Delphi

Function TPDFlib.GeodesicDistanceMeters(Latitude1, Longitude1, Latitude2, Longitude2: Double): Double;

DLL

int DLGeodesicDistanceMeters(int InstanceID, double Latitude1, double Longitude1, double Latitude2, double Longitude2, PDouble Distance);

このエクスポートは Windows DLL、macOS Dylib、Linux 共有ライブラリで利用できます

ActiveX

Function PDFlib::GeodesicDistanceMeters(Latitude1 As Double, Longitude1 As Double, Latitude2 As Double, Longitude2 As Double) As Double

IPDFlibrary21 で利用できます。生成されたタイプ ライブラリ ユニットを使う Delphi クライアントは CoPDFlibrary.CreateEditionTools21 で取得できます

オートメーションは距離を直接返します。ゼロは同一地点または不正な座標を表します

パラメータ

Latitude1, Latitude2−90〜90 度の緯度
Longitude1, Longitude2−180〜180 度の経度
DistanceDLL 関数経由でメートル単位の結果を受け取ります

戻り値

Pascal と ActiveX はメートル単位の距離を返します。同一地点はゼロ、不正な入力もゼロです。DLL 関数は同一地点を含む有効な座標で 1 を返します。不正な座標は 0 を返し、書き込み可能な距離結果にゼロを設定します

備考

通常経路は WGS 84 楕円体上で計測します。逆解法が対蹠点近傍で収束しない場合は、平均半径の球面近似で距離を求めます。ドキュメントは不要です

関連項目

PagePointToLatLon · LatLonToPagePoint · GeodesicPolygonAreaSqMeters · PageGeoViewportDistanceMeters