本文介绍图形操作集合的静态类 geometryEngine
首先先把api列出来 https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html 1. 常用的方法 判断集合是否包含关系 contains(geometry , geometry) https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#contains
获取集合的面积 planeArea() https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#planarArea
获取集合的长度 planeLength() https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#planeLength
获取图形的距离 distance(geometry , geomegtry) https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#contains
对图形进行裁剪 cut(geometry , geometry) https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#cut