Socket
Socket
Sign inDemoInstall

turf-tin

Package Overview
Dependencies
3
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-tin


Version published
Weekly downloads
11K
decreased by-9.98%
Maintainers
1
Install size
94.2 kB
Created
Weekly downloads
 

Readme

Source

turf-tin

build status

Takes a set of points and the name of a z-value property and creates a tin (Triangulated Irregular Network). These are often used for developing elevation contour maps or stepped heat visualizations.

###Install

npm install turf-tin

###Parameters

namedescription
ptsa point featurecollection
za z value to encode

###Usage

tin(pts, z)

###Example

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

var z = 'elevation'
var pts = JSON.parse(fs.readFileSync('/path/to/pts.geojson'))

var tinPolys = tin(pts, z)

console.log(tinPolys)

Keywords

FAQs

Last updated on 16 Dec 2014

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc