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

Method buffer

src/common/util/GeometryAnalysis.js:60–68  ·  view source on GitHub ↗

* @function GeometryAnalysis.prototype.buffer * @version 11.2.0 * @description 缓冲区分析。 * @param {GeoJSONFeature} feature - 要素。 * @param {number} radius - 缓冲区距离,单位与数据单位一致。 * @returns {GeoJSONFeature} 结果要素。

(feature, radius)

Source from the content-addressed store, hash-verified

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

Callers 3

analysisFunction · 0.80
ol.jsFile · 0.80

Calls 2

geojson2UGGeometryFunction · 0.90
ugGeometry2GeojsonFunction · 0.90

Tested by

no test coverage detected