turf line to polygon 将LineString几何体转换为(闭合的)多边形几何体
草皮线到多边形将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",
用户评论