JSPM

  • Created
  • Published
  • Downloads 1297401
  • Score
    100M100P100Q224444F
  • License MIT

turf bboxPolygon module

Package Exports

  • @turf/bbox-polygon

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@turf/bbox-polygon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

turf-bbox-polygon

bboxPolygon

Takes a bbox and returns an equivalent polygon.

Parameters

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

Examples

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

var poly = turf.bboxPolygon(bbox);

//=poly

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


This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.

Installation

Install this module individually:

$ npm install turf-bbox-polygon

Or install the Turf module that includes it as a function:

$ npm install turf