- 开始使用
- MEASUREMENT
- COORDINATE MUTATION
- TRANSFORMATION
- FEATURE CONVERSION
- MISC
- HELPER
- RANDOM
- DATA
- INTERPOLATION
- JOINS
- GRIDS
- CLASSIFICATION
- AGGREGATION
- META
- ASSERTIONS
- BOOLEANS
- UNIT CONVERSION
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
tin 多边形
Takes a set of points and creates a Triangulated Irregular Network , or a TIN for short, returned as a collection of Polygons. These are often used for developing elevation contour maps or stepped heat visualizations.
获取一组点并创建一个三角形的不规则网络,或简称为一个TIN,返回为多边形的集合。这些经常用于发展高程等高线地图或阶梯热可视化。
参数
参数 | 类型 | 描述 |
---|---|---|
points | FeatureCollection <Point> | input points |
z | (String) | name of the property from which to pull z values This is optional: if not given, then there will be no extra data added to the derived triangles. |
返回
FeatureCollection <Polygon> - TIN output
示例
// generate some random point data
var points = turf.randomPoint(30, {bbox: [50, 30, 70, 50]});
// add a random property to each point between 0 and 9
for (var i = 0; i < points.features.length; i++) {
points.features[i].properties.z = ~~(Math.random() * 9);
}
var tin = turf.tin(points, 'z');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论