Socket
Socket
Sign inDemoInstall

turf-union

Package Overview
Dependencies
2
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 1.0.0

bench.js

14

index.js

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

var jsts = require('jsts')
var jsts = require('jsts');
module.exports = function(poly1, poly2){
var reader = new jsts.io.GeoJSONReader()
var a = reader.read(JSON.stringify(poly1.geometry))
var b = reader.read(JSON.stringify(poly2.geometry))
var reader = new jsts.io.GeoJSONReader();
var a = reader.read(JSON.stringify(poly1.geometry));
var b = reader.read(JSON.stringify(poly2.geometry));
var union = a.union(b);
var parser = new jsts.io.GeoJSONParser()
var parser = new jsts.io.GeoJSONParser();
union = parser.write(union)
union = parser.write(union);
return {

@@ -21,3 +21,3 @@ type: 'Feature',

properties: poly1.properties
}
};
}
{
"name": "turf-union",
"version": "0.0.1",
"version": "1.0.0",
"description": "find the union of geographic features",

@@ -24,8 +24,9 @@ "main": "index.js",

"devDependencies": {
"glob": "~4.0.0",
"tape": "~2.13.1"
"benchmark": "^1.0.0",
"glob": "~4.3.1",
"tape": "~3.0.3"
},
"dependencies": {
"jsts": "~0.13.4"
"jsts": "~0.15.0"
}
}

@@ -5,3 +5,3 @@ turf-union

Combines to polygons into one.
Combines two polygons into one.

@@ -8,0 +8,0 @@ ###Install

var union = require('../'),
test = require('tape'),
glob = require('glob'),
fs = require('fs')
fs = require('fs');

@@ -16,3 +16,2 @@ var REGEN = false;

t.end();
})
});
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