Socket
Socket
Sign inDemoInstall

turf-envelope

Package Overview
Dependencies
4
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    turf-envelope

turf envelope module


Version published
Weekly downloads
12K
decreased by-6.71%
Maintainers
1
Install size
28.3 kB
Created
Weekly downloads
 

Readme

Source

turf-envelope

Build Status

Takes a Feature or FeatureCollection and returns a rectangular polygon feature that encompasses all vertices.

###Install

npm install turf-envelope

###Parameters

namedescription
fcA FeatureCollection

###Usage

envelope(fc)

###Example

var envelope = require('turf-envelope')
var point = require('turf-point')
var featurecollection = require('turf-featurecollection')

var pt1 = point(-75.343, 39.984, {name: 'Location A'})
var pt2 = point(-75.833, 39.284, {name: 'Location B'})
var pt3 = point(-75.534, 39.123, {name: 'Location C'})
var fc = featurecollection([pt1, pt2, pt3])

var enveloped = envelope(fc)

console.log(envelopePoly)

Keywords

FAQs

Last updated on 10 Dec 2014

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc