randomLineString()

随机生成多条线。

var lineStrings = turf.randomLineString(25, {bbox: [-180, -90, 180, 90]})

参数

参数名 类型 描述
count int 点数量
options Object  

options

参数名 类型 默认值 描述
bbox double[] [-180,-90,180,90] 限制范围
num_vertices int 10 每条线顶点数量
max_length number 0.0001 相邻顶点最大间隔,单位为度
max_rotation double Math.PI/8 相邻线段最大夹角,单位为弧度

返回值

FeatureCollection <LineString>

results matching ""

    No results matching ""