1. 首页
  2. 考试认证
  3. 其它
  4. turf line to polygon 将LineString几何体转换为(闭合的)多边形几何体

turf line to polygon 将LineString几何体转换为(闭合的)多边形几何体

上传者: 2024-10-07 18:00:30上传 ZIP文件 2.44KB 热度 1次
草皮线到多边形将LineString几何体转换为(闭合的)多边形几何体。用法var lineToPolygon = require('turf-line-to-polygon'); var lineFeature = { "type": "Feature", "properties": {}, "geometry": { "type": "LineString", "coordinates": [ [ 0,0 ], [ 0,1 ], [ 1,0 ] ] } }; var polyFeature = lineToPolygon(lineFeature);返回: { "type": "Feature", "properties": {}, "geometry": { "type": "Polygon",
用户评论