turf-bbox-polygon

turf bboxPolygon module

Turf packages are now namespaced: please use @turf/bbox-polygon instead
Last updated 10 years ago by tmcw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install turf-bbox-polygon 
SYNC missed versions from official npm registry.

turf-bbox-polygon

build status

turf bboxPolygon module

turf.bbox-polygon(bbox)

Takes a bbox and returns an equivalent Polygon|polygon.

Parameters

parameter type description
bbox Array.<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

Current Tags

  • 3.0.7-canary.ae89c8b3                                ...           canary (10 years ago)
  • 3.0.12                                ...           latest (10 years ago)

19 Versions

  • 3.0.12 [deprecated]           ...           10 years ago
  • 3.0.10 [deprecated]           ...           10 years ago
  • 3.0.7-canary.ae89c8b3                                ...           10 years ago
  • 3.0.7 [deprecated]           ...           10 years ago
  • 3.0.6 [deprecated]           ...           10 years ago
  • 3.0.5-canary.4f73aa1a                                ...           10 years ago
  • 3.0.5 [deprecated]           ...           11 years ago
  • 3.0.1 [deprecated]           ...           11 years ago
  • 3.0.0-canary.7879bf6c                                ...           11 years ago
  • 3.0.0-canary.2f5f7167                                ...           11 years ago
  • 1.0.2 [deprecated]           ...           11 years ago
  • 1.0.1 [deprecated]           ...           12 years ago
  • 1.0.0 [deprecated]           ...           12 years ago
  • 0.1.5 [deprecated]           ...           12 years ago
  • 0.1.4 [deprecated]           ...           12 years ago
  • 0.1.3 [deprecated]           ...           12 years ago
  • 0.1.2 [deprecated]           ...           12 years ago
  • 0.1.1 [deprecated]           ...           12 years ago
  • 0.1.0 [deprecated]           ...           13 years ago
Downloads
Total 49
Today 4
This Week 5
This Month 40
Last Day 0
Last Week 7
Last Month 9
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE