multiLineString
描述
¥Description
Creates a 特性<MultiLineString> based on a coordinate array.Properties can be added optionally.
¥Creates a Feature<MultiLineString> based on a coordinate array. Properties can be added optionally.
参数
¥Parameters
名称 | 类型 | 描述 |
---|---|---|
coordinates | UNCERTAIN | |
properties? | GeoJsonProperties | an Object of key-value pairs to add as properties (default ) |
options? | 对象 | 可选参数(默认 ) |
options.bbox? | BBox | Bounding Box Array [west, south, east, north] associated with the Feature |
options.id? | ID | Identifier associated with the Feature |
返回
¥Returns
特性<MultiLineString, GeoJsonProperties> a MultiLineString feature
¥Feature<MultiLineString, GeoJsonProperties> a MultiLineString feature
示例
¥Examples
var multiLine = turf.multiLineString([
[
[0, 0],
[10, 10],
],
]);
//=multiLine
安装
¥Installation
$ npm install @turf/helpers
import { multiLineString } from "@turf/helpers";
const result = multiLineString(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.multiLineString(...);