* @function GeometryAnalysis.prototype.hasTouch * @version 11.2.0 * @description 几何对象边界是否接触分析,传入要素坐标系需一致。 * @param {GeoJSONFeature} feature - 要素。 * @param {GeoJSONFeature} compareFeature - 对比要素。 * @param {number} [tolerance=1e-6] - 要素节点容限值。 * @returns {boolean} 几何对象边界是否
(feature, compareFeature, tolerance = 1e-6)
| 122 | * @returns {boolean} 几何对象边界是否接触。 |
| 123 | */ |
| 124 | hasTouch(feature, compareFeature, tolerance = 1e-6) { |
| 125 | const ugFeature1 = geojson2UGGeometry(feature); |
| 126 | const ugFeature2 = geojson2UGGeometry(compareFeature); |
| 127 | const result = this.module._UGCWasm_Geometrist_HasTouch(ugFeature1, ugFeature2, tolerance); |
| 128 | return result === 1; |
| 129 | } |
| 130 | /** |
| 131 | * @function GeometryAnalysis.prototype.resample |
| 132 | * @version 11.2.0 |
no test coverage detected