概述
布尔计算
booleanClockwise
booleanContains
booleanCrosses
booleanDisjoint
booleanEqual
booleanPointInPolygon
booleanPointOnLine
转换和测量
length
area
along
bbox
bboxPolygon
buffer
circle
simplify
辅助方法
feature
point
lineString
polygon
模拟数据
randomPosition
randomPoint
randomLineString
randomPolygon
Published with GitBook
randomPoint
randomPoint()
随机生成多个点。
var
points = turf.randomPoint(
25
, {bbox: [
-180
,
-90
,
180
,
90
]})
参数
参数名
类型
描述
count
int
点数量
options
Object
options
参数名
类型
默认值
描述
bbox
double[]
[-180,-90,180,90]
限制范围
返回值
FeatureCollection <Point>
results matching "
"
No results matching "
"