Skip to main content
Version: 7.3.0

multiLineString

描述

¥Description

基于坐标数组创建 特性<MultiLineString>。属性可选择性添加。

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

参数

¥Parameters

名称类型描述
coordinatesUNCERTAIN
properties?GeoJsonProperties要添加为属性的键值对对象(默认
options?对象可选参数(默认值:
options.bbox?BBox与要素关联的边界框数组 [西,南,东,北]
options.id?ID与特性关联的标识符

返回

¥Returns

特性<MultiLineString, GeoJsonProperties> 多线字符串要素

¥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(...);