Socket
Socket
Sign inDemoInstall

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.105 to 0.0.106

5

lib/concave.js

@@ -7,4 +7,3 @@ // 1. run tin on points

var fs = require('fs'),
async = require('async')
var async = require('async')
var t = {}

@@ -22,6 +21,4 @@ t.tin = require('./tin')

tinPolys.features = filteredPolys
fs.writeFileSync('./testOut/filteredConvcave.geojson', JSON.stringify(tinPolys))
t.buffer(tinPolys, 1, 'miles', function(err, bufferPolys){
if(err) done(err)
fs.writeFileSync('./testOut/bufferConvcave.geojson', JSON.stringify(bufferPolys))
t.merge(bufferPolys, function(err, mergePolys){

@@ -28,0 +25,0 @@ if(err) done(err)

@@ -14,3 +14,2 @@ //https://github.com/jasondavies/conrec.js

t.square = require('./square')
//t.erase = require('./erase')
t.donuts = require('./donuts')

@@ -39,4 +38,2 @@

})
//fs.writeFileSync('../test/testOut/gridTest.geojson',JSON.stringify(gridResult))
//fs.writeFileSync('../test/testOut/tinTest.geojson',JSON.stringify(tinResult))

@@ -67,5 +64,3 @@ var depth = Math.sqrt(gridResult.features.length)

var contourList = c.contourList()
//fs.writeFileSync(__dirname+'/../test/testOut/contourList.json', JSON.stringify(contourList))
var fc = t.featurecollection([])

@@ -85,7 +80,5 @@ _.each(contourList, function(c){

})
//fs.writeFileSync(__dirname+'/../test/testOut/contourList.json', JSON.stringify(fc))
// perform donuts function before returning if donuts option is true
t.donuts(fc, function(err, donutPolys){
//console.log(JSON.stringify(contourList))
done(null, donutPolys)

@@ -92,0 +85,0 @@ })

4

lib/donuts.js

@@ -23,5 +23,2 @@ /*

if(!_.isEqual(poly1.properties, poly2.properties)){
//console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
//console.log(JSON.stringify(poly1))
//console.log(JSON.stringify(poly2))
t.erase(poly1, poly2, function(err, erased){

@@ -44,3 +41,2 @@ var duplicate = _.some(donuts.features, erased)

})
done(null, donuts)

@@ -47,0 +43,0 @@ }

@@ -18,5 +18,3 @@ // look here for help http://svn.osgeo.org/grass/grass/branches/releasebranch_6_4/vector/v.overlay/main.c

var b = reader.read(JSON.stringify(poly2.geometry))
//console.log('aaaaaaaaa')
var erased = a.difference(b);
//console.log('bbbbbbbbb')
var parser = new jsts.io.GeoJSONParser()

@@ -26,3 +24,2 @@ erased = parser.write(erased)

poly1.geometry = erased
//console.log(poly1)
done(null, poly1)

@@ -29,0 +26,0 @@ }

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

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

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