Socket
Socket
Sign inDemoInstall

turf-intersect

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-intersect - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "turf-intersect",
"version": "1.0.0",
"version": "1.0.1",
"description": "find the intersection of spatial features",

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

@@ -0,7 +1,7 @@

turf-intersect
===
[![build status](https://secure.travis-ci.org/Turfjs/turf-intersect.png)](http://travis-ci.org/Turfjs/turf-intersect)
# turf-intersect
Find the intersection of two Polygon Features.
Find the intersection of geographic shapes.
```js

@@ -11,1 +11,31 @@ var intersect = require('turf-intersect');

```
##Install
```sh
npm install turf-intersect
```
##Parameters
name|description
---|---
feature1|Geometry or Feature
feature2|Geometry or Feature
##Usage
```js
turf(poly1, poly2)
```
###Example
```js
var intersect = require('turf-intersect');
var park = require('park.json');
var lake = require('lake.json');
var intersection = intersect(park, lake);
console.log(intersection);
```
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