Skip to main content
Version: Next

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

名称类型描述
pointGridFeatureCollection<>输入点 - must be square or rectangular
breaks数组<number>等高线绘制位置
options?对象options on output (default )
options.zProperty?stringthe 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(...);