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

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

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
decreased by-6.4%
Maintainers
2
Weekly downloads
 
Created
Source

turf-union

build status

Combines to 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 17 Sep 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