MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / hasTouch

Method hasTouch

src/common/util/GeometryAnalysis.js:124–129  ·  view source on GitHub ↗

* @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)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

geojson2UGGeometryFunction · 0.90

Tested by

no test coverage detected