- 开始使用
- MEASUREMENT
- COORDINATE MUTATION
- TRANSFORMATION
- FEATURE CONVERSION
- MISC
- HELPER
- RANDOM
- DATA
- INTERPOLATION
- JOINS
- GRIDS
- CLASSIFICATION
- AGGREGATION
- META
- ASSERTIONS
- BOOLEANS
- UNIT CONVERSION
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
插入网格点
Takes a set of points and estimates their 'property' values on a grid using the Inverse Distance Weighting (IDW) method.
采用一组点,并估计它们在网格上的“属性”值,使用 反向距离加权(IDW) 方法。
参数
参数 | 类型 | 描述 |
---|---|---|
points | FeatureCollection <Point> | with known value |
cellSize | number | the distance across each grid point |
options | Object | 可选参数:见下文 |
options选项
属性 | 类型 | 默认值 | 描述 |
---|---|---|---|
gridType | string | square | defines the output format based on a Grid Type (options: 'square' |
property | string | elevation | the property name in |
units | string | kilometers | used in calculating cellSize, can be degrees, radians, miles, or kilometers |
weight | number | 1 | exponent regulating the distance-decay weighting |
返回
FeatureCollection <(Point|Polygon)> - grid of points or polygons with interpolated 'property'
示例
var points = turf.randomPoint(30, {bbox: [50, 30, 70, 50]});
// add a random property to each point
turf.featureEach(points, function(point) {
point.properties.solRad = Math.random() * 50;
});
var options = {gridType: 'points', property: 'solRad', units: 'miles'};
var grid = turf.interpolate(points, 100, options);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论