Socket
Socket
Sign inDemoInstall

turf-union

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-union

find the union of geographic features


Version published
Weekly downloads
13K
increased by12.88%
Maintainers
2
Weekly downloads
 
Created
Source

turf-union

build status

Combines two polygons into one.

###Install

npm install turf-union

###Parameters

namedescription
polygon1subject polygon
polygon2polygon to add

###Usage

union(polygon1, polygon2)

###Example

var union = require('turf-union')
var fs = require('fs')

var poly1 = JSON.parse(fs.readFileSync('/path/to/file1.geojson'))
var poly2 = JSON.parse(fs.readFileSync('/path/to/file2.geojson'))

var unioned = union(poly1, poly2)

Keywords

FAQs

Package last updated on 11 Dec 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