從兩個幾何之間的交點創建新幾何。如果輸入幾何具有不同的維度(即點 = 0;折線 = 1;多邊形 = 2),則結果的維度將等於輸入的最低維度。下表說明了幾何類型的各種組合的預期輸出。請注意,
geometry1
和geometry2
在此操作中可以互換,如果翻轉將返回相同的結果。幾何1類型 幾何2型 結果幾何類型 Polygon Polygon Polygon Polygon Polyline Polyline Polygon Point Point Polyline Polyline Polyline Polyline Point Point Point Point Point 請注意,兩條相交的折線不會返回點幾何圖形。相反,此函數將返回兩個幾何圖形之間相等的折線路徑。
參數:
類型 說明 輸入幾何或幾何數組。
geometry2 Geometry與 geometry1 相交的幾何。
返回:
類型 說明 Promise<Geometry> 解析後,響應是輸入幾何的交點。 例子:
// Creates a new geometry from the intersection of the two geometries const intersecting = await geometryEngineAsync.intersect(boundaryPolygon, buffers);
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/geometry/geometryEngineAsync"], (geometryEngineAsync) => { /* code goes here */ });
ESM:
import * as geometryEngineAsync from "@arcgis/core/geometry/geometryEngineAsync";
對象:
esri/geometry/geometryEngineAsync
自從:用於 JavaScript 4.0 的 ArcGIS API
用法說明
geometryEngineAsync.intersect
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS geometryEngineAsync.intersects用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.isSimple用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.overlaps用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.geodesicBuffer用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.symmetricDifference用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.distance用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.planarArea用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.crosses用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.flipHorizontal用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.rotate用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.generalize用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.difference用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.touches用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.disjoint用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.contains用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.buffer用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.nearestVertex用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.within用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.cut用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.union用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.geodesicDensify用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.densify用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.equals用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.geodesicLength用法及代碼示例
- JavaScript ArcGIS geometryEngineAsync.convexHull用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 geometryEngineAsync.intersect。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。