JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13877
  • Score
    100M100P100Q53763F
  • License MIT

turf isolines module

Package Exports

  • turf-isolines

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (turf-isolines) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

turf-isolines

Build Status

Takes a FeatureCollection of points with z values and an array of value breaks and generates isolines. These are commonly used to create elevation maps, but can be used for general data interpolation as well.

var isolines = require('turf-isolines')
var fs = require('fs')

var z = 'elevation'
var resolution = 15
var breaks = [.1, 22, 45, 55, 65, 85,  95, 105, 120, 180]
var points = JSON.parse(fs.readFileSync('/path/to/points.geojson'))

var isolined = isolines(points, z, resolution, breaks)

console.log(isolined)