* @function GeometryAnalysis.prototype.resample * @version 11.2.0 * @description 重采样分析。 * @param {GeoJSONFeature} feature - 要素。 * @param {number} [tolerance=1e-6] - 指定的重采样容限。 * @returns {GeoJSONFeature} 结果要素。
(feature, tolerance = 1e-6)
| 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 |
no test coverage detected