Skip to main content
Version: 6.5.0

isobands

Description

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

NameTypeDescription
pointGridFeatureCollection<Point>input points - must be square or rectangular
breaksArray<number>where to draw contours
options?Objectoptions on output (default {})
options.zProperty?stringthe property name in points from which z-values will be pulled (default 'elevation')
options.commonProperties?ObjectGeoJSON properties passed to ALL isobands (default {})
options.breaksProperties?Array<Object>GeoJSON properties passed, in order, to the correspondent isoband (order defined by breaks) (default [])

Returns

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