Socket
Socket
Sign inDemoInstall

turf-envelope

Package Overview
Dependencies
4
Maintainers
8
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
8
Created
Weekly downloads
 

Readme

Source

turf-envelope

build status

turf envelope module

turf.envelope(fc)

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

Parameters

parametertypedescription
fcFeatureCollectiona FeatureCollection of any type

Example

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

var enveloped = turf.envelope(fc);

var result = turf.featurecollection(
	fc.features.concat(enveloped));

//=result

Installation

Requires nodejs.

$ npm install turf-envelope

Tests

$ npm test

Keywords

FAQs

Last updated on 06 Feb 2015

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