isobands
描述
¥Description
Takes a square or rectangular grid FeatureCollection of 点 features with z-values and an array of value breaks and generates filled contour isobands.
¥Takes a square or rectangular grid FeatureCollection of Point features with z-values and an array of value breaks and generates filled contour isobands.
参数
¥Parameters
名称 | 类型 | 描述 |
---|---|---|
pointGrid | FeatureCollection<点> | 输入点 - must be square or rectangular |
breaks | 数组<number> | 等高线绘制位置 |
options? | 对象 | options on output (default ) |
options.zProperty? | string | the property name in points from which z-values will be pulled (default 'elevation') |
options.commonProperties? | 对象 | GeoJSON properties passed to ALL isobands (default ) |
options.breaksProperties? | 数组<对象> | GeoJSON properties passed, in order, to the correspondent isoband (order defined by breaks) (default []) |
返回
¥Returns
FeatureCollection<MultiPolygon> a FeatureCollection of MultiPolygon features representing isobands
安装
¥Installation
$ npm install @turf/isobands
import { isobands } from "@turf/isobands";
const result = isobands(...);
$ npm install @turf/turf
import * as turf from "@turf/turf";
const result = turf.isobands(...);