Socket
Socket
Sign inDemoInstall

turf-tin

Package Overview
Dependencies
Maintainers
8
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-tin - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

18

index.js

@@ -7,2 +7,20 @@ //http://en.wikipedia.org/wiki/Delaunay_triangulation

/**
* Takes a set of points and the name of a z-value property and
* creates a [Triangulated Irregular Network](http://en.wikipedia.org/wiki/Triangulated_irregular_network),
* or a TIN for short. These are often used
* for developing elevation contour maps or stepped heat visualizations.
*
* @module turf/tin
* @param {GeoJSONFeatureCollection} points - a GeoJSON FeatureCollection containing
* Features with Point geometries
* @param {string} propertyName - name of the property from which to pull z values
* @return {GeoJSONFeatureCollection} output
* @example
* var fs = require('fs')
* var z = 'elevation'
* var pts = JSON.parse(fs.readFileSync('/path/to/pts.geojson'))
* var tinPolys = turf.tin(pts, z)
* console.log(tinPolys)
*/
module.exports = function(points, z){

@@ -9,0 +27,0 @@ //break down points

2

package.json
{
"name": "turf-tin",
"version": "1.0.1",
"version": "1.0.2",
"description": "turf tin module",

@@ -5,0 +5,0 @@ "main": "index.js",

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