Skip to content

KBE3D / KBCore / turf / points

函数: points()

points<P>(coordinates: Position[], properties?: P, options?: { bbox?: BBox; id?: Id; }): FeatureCollection<Point, P>

Function

Creates a Point FeatureCollection from an Array of Point coordinates.

类型参数

P

P extends GeoJsonProperties = GeoJsonProperties

参数

coordinates

Position[]

an array of Points

properties?

P

Translate these properties to each Feature

options?

Optional Parameters

bbox?

BBox

Bounding Box Array [west, south, east, north] associated with the FeatureCollection

id?

Id

Identifier associated with the FeatureCollection

返回

FeatureCollection<Point, P>

Point Feature

示例

ts
var points = turf.points([
  [-75, 39],
  [-80, 45],
  [-78, 50]
]);

//=points

KBE3D @3.0.0 Copyright © 2024-present KBE3D