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

turf-bbox-polygon

Package Overview
Dependencies
Maintainers
9
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

turf-bbox-polygon

turf bboxPolygon module

  • 3.0.5-canary.4f73aa1a
  • Source
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

turf-bbox-polygon

build status

turf bboxPolygon module

turf.bbox-polygon(bbox)

Takes a bbox and returns an equivalent Polygon|polygon.

Parameters

parametertypedescription
bboxArray.<number>an Array of bounding box coordinates in the form: [xLow, yLow, xHigh, yHigh]

Example

var bbox = [0, 0, 10, 10];

var poly = turf.bboxPolygon(bbox);

//=poly

Returns Feature.<Polygon>, a Polygon representation of the bounding box

Installation

Requires nodejs.

$ npm install turf-bbox-polygon

Tests

$ npm test

Keywords

FAQs

Package last updated on 03 Jun 2016

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