Skip to content

KBE3D / KBCore / turf / multiLineString

函数: multiLineString()

multiLineString<P>(coordinates: Position[][], properties?: P, options?: { bbox?: BBox; id?: Id; }): Feature<MultiLineString, P>

Function

Creates a Feature<MultiLineString> based on a coordinate array. Properties can be added optionally.

类型参数

P

P extends GeoJsonProperties = GeoJsonProperties

参数

coordinates

Position[][]

an array of LineStrings

properties?

P

an Object of key-value pairs to add as properties

options?

Optional Parameters

bbox?

BBox

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

id?

Id

Identifier associated with the Feature

返回

Feature<MultiLineString, P>

a MultiLineString feature

抛出

if no coordinates are passed

示例

ts
var multiLine = turf.multiLineString([[[0,0],[10,10]]]);

//=multiLine

KBE3D @3.0.0 Copyright © 2024-present KBE3D