3.0.12 • Published 8 years ago

turf-bbox-polygon v3.0.12

Weekly downloads
13,084
License
MIT
Repository
github
Last release
8 years ago

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