New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@turf/isobands

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/isobands

turf isobands module

  • 4.5.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1M
increased by4.79%
Maintainers
4
Weekly downloads
 
Created
Source

@turf/isobands

isobands

Takes a grid FeatureCollection of Point features with z-values and an array of value breaks and generates filled contour isobands.

Parameters

  • points FeatureCollection<Point> a FeatureCollection of Point features
  • breaks Array<number> where to draw contours
  • zProperty [string] the property name in points from which z-values will be pulled (optional, default 'elevation')
  • options [Object] options on output (optional, default {})
    • options.isobandProperties [Array<Object>] GeoJSON properties passed, in order, to the correspondent isoband (order defined by breaks) (optional, default [])
    • options.commonProperties [Object] GeoJSON properties passed to ALL isobands (optional, default {})

Examples

// create random points with random
// z-values in their properties
var extent = [-70.823364, -33.553984, -69.823364, -32.553984];
var cellWidth = 5;
var units = 'miles';
var pointGrid = turf.pointGrid(extent, cellWidth, units);
for (var i = 0; i < pointGrid.features.length; i++) {
    pointGrid.features[i].properties.elevation = Math.random() * 10;
}
var breaks = [0, 5, 8.5];
var isobands = turf.isobands(pointGrid, breaks, 'temp');

//addToMap
var addToMap = [isobands];

Returns FeatureCollection<MultiPolygon> a FeatureCollection of MultiPolygon features representing isobands


This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.

Installation

Install this module individually:

$ npm install @turf/isobands

Or install the Turf module that includes it as a function:

$ npm install @turf/turf

Keywords

FAQs

Package last updated on 30 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc