* @function GeometryAnalysis.prototype.buffer * @version 11.2.0 * @description 缓冲区分析。 * @param {GeoJSONFeature} feature - 要素。 * @param {number} radius - 缓冲区距离,单位与数据单位一致。 * @returns {GeoJSONFeature} 结果要素。
(feature, radius)
| 58 | * @returns {GeoJSONFeature} 结果要素。 |
| 59 | */ |
| 60 | buffer(feature, radius) { |
| 61 | const ugcGeojson = geojson2UGGeometry(feature); |
| 62 | const buffer = this.module._UGCWasm_Geometrist_Buffer(ugcGeojson, radius); |
| 63 | const geometry = ugGeometry2Geojson(buffer); |
| 64 | return { |
| 65 | type: "Feature", |
| 66 | geometry |
| 67 | } |
| 68 | } |
| 69 | /** |
| 70 | * @function GeometryAnalysis.prototype.computeConvexHull |
| 71 | * @version 11.2.0 |
no test coverage detected