Socket
Socket
Sign inDemoInstall

turf-tin

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-tin

turf tin module


Version published
Weekly downloads
13K
increased by12.55%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 21 Jul 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc