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

Method resample

src/common/util/GeometryAnalysis.js:138–145  ·  view source on GitHub ↗

* @function GeometryAnalysis.prototype.resample * @version 11.2.0 * @description 重采样分析。 * @param {GeoJSONFeature} feature - 要素。 * @param {number} [tolerance=1e-6] - 指定的重采样容限。 * @returns {GeoJSONFeature} 结果要素。

(feature, tolerance = 1e-6)

Source from the content-addressed store, hash-verified

136 * @returns {GeoJSONFeature} 结果要素。
137 */
138 resample(feature, tolerance = 1e-6) {
139 const ugFeature = geojson2UGGeometry(feature);
140 const result = this.module._UGCWasm_Geometrist_Resample(ugFeature, tolerance);
141 return {
142 type: "Feature",
143 geometry: ugGeometry2Geojson(result)
144 };
145 }
146 /**
147 * @function GeometryAnalysis.prototype.isParallel
148 * @version 11.2.0

Callers 1

Calls 2

geojson2UGGeometryFunction · 0.90
ugGeometry2GeojsonFunction · 0.90

Tested by

no test coverage detected