-
pointFromDistance
(point, distance, azimuth)
{Point}
static
大地測量計算距已知位置的定義距離和方向的位置。
參數:
類型 說明 point Point原產地。
distance Number與原點的距離(以米為單位)。
azimuth Number以度為單位的原點方向。
返回:
類型 說明 Point 計算的點。 例子:
// Display the location of a point 10km East of Los Angeles. const LA = { latitude: 34.05, longitude: -118.25 }; const destination = geodesicUtils.pointFromDistance( new Point({ x: LA.longitude, y: LA.latitude }), 10000, 90 ); const { latitude, longitude } = destination; console.log("Latitude: ", latitude, ", Longitude: ", longitude);
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/geometry/support/geodesicUtils"], (geodesicUtils) => { /* code goes here */ });
ESM:
import * as geodesicUtils from "@arcgis/core/geometry/support/geodesicUtils";
對象:
esri/geometry/support/geodesicUtils
自從:用於 JavaScript 4.12 的 ArcGIS API
用法說明
geodesicUtils.pointFromDistance
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS geodesicUtils.geodesicDensify用法及代碼示例
- JavaScript ArcGIS geodesicUtils.geodesicAreas用法及代碼示例
- JavaScript ArcGIS geodesicUtils.geodesicDistance用法及代碼示例
- JavaScript ArcGIS geodesicUtils.geodesicLengths用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.overlaps用法及代碼示例
- JavaScript ArcGIS geometryEngine.buffer用法及代碼示例
- JavaScript ArcGIS geometryEngine.equals用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.geodesicBuffer用法及代碼示例
- JavaScript ArcGIS geometryEngine.touches用法及代碼示例
- JavaScript ArcGIS geometryEngine.generalize用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.intersects用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.symmetricDifference用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.distance用法及代碼示例
- JavaScript ArcGIS geometryEngine.union用法及代碼示例
- JavaScript ArcGIS geometryEngine.within用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.intersect用法及代碼示例
- JavaScript ArcGIS geometryEngine.geodesicLength用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.planarArea用法及代碼示例
- JavaScript ArcGIS geometryEngine.symmetricDifference用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.crosses用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.flipHorizontal用法及代碼示例
- JavaScript ArcGIS geometryService.cut用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.rotate用法及代碼示例
- JavaScript ArcGIS geometryEngine.intersects用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.generalize用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 geodesicUtils.pointFromDistance。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。