Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

turf

Package Overview
Dependencies
Maintainers
1
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf - npm Package Compare versions

Comparing version 0.0.65 to 0.0.66

lib/tag.js

1

index.js
module.exports = {
tag: require('./lib/tag'),
size: require('./lib/size'),

@@ -3,0 +4,0 @@ sample: require('./lib/sample'),

3

lib/contour.js

@@ -64,4 +64,2 @@ //https://github.com/jasondavies/conrec.js

for (var x=0; x<depth; x++){
//console.log(x * interval + bbox[0])
//console.log(x * interval + bbox[1])
xCoordinates.push(x * interval + bbox[0])

@@ -429,3 +427,2 @@ yCoordinates.push(x * interval + bbox[1])

Conrec.prototype.contour = function(d, ilb, iub, jlb, jub, x, y, nc, z) {
//console.log(y)
var h = this.h, sh = this.sh, xh = this.xh, yh = this.yh;

@@ -432,0 +429,0 @@ var drawContour = this.drawContour;

{
"name": "turf",
"version": "0.0.65",
"version": "0.0.66",
"description": "a node.js library for performing geospatial operations with geojson",

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

@@ -63,2 +63,3 @@ turf

- sample
- tag

@@ -74,3 +75,3 @@ **Planned Features**

- interpolate
- tag
- area

@@ -132,2 +133,3 @@ - filter

**linestring**

@@ -147,2 +149,3 @@

**polygon**

@@ -162,2 +165,3 @@

**featurecollection**

@@ -193,2 +197,3 @@

**square**

@@ -300,2 +305,3 @@

**combine**

@@ -324,3 +330,5 @@

var t = require('turf')
var trees = t.featurecollection([t.point(1,2, {species: 'oak'}), t.point(2,1, {species: 'dogwood'}), t.point(3,1, {species: 'maple'})])
var trees = t.featurecollection([t.point(1,2, {species: 'oak'}),
t.point(2,1, {species: 'dogwood'}),
t.point(3,1, {species: 'maple'})])

@@ -349,2 +357,3 @@ t.remove(points, 'species', 'dogwood', function(err, result) {

**buffer**

@@ -366,2 +375,3 @@

**distance**

@@ -383,2 +393,3 @@

**nearest**

@@ -403,2 +414,3 @@

**tin**

@@ -420,2 +432,3 @@

**grid**

@@ -434,2 +447,3 @@

**planepoint**

@@ -455,2 +469,3 @@

**midpoint**

@@ -567,2 +582,20 @@

**tag**
Performs a spatial join on a set of points from a set of polygons.
```javascript
var t = require('turf')
t.load('./testIn/tagPoints.geojson', function(err, points){
t.load('./testIn/tagPolygons.geojson', function(err, polygons){
t.tag(points, polygons, 'polyID', function(err, taggedPoints){
console.log(taggedPoints)
})
})
})
```
- - -

@@ -569,0 +602,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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