turf-bbox-polygon

turf bboxPolygon module

Turf packages are now namespaced: please use @turf/bbox-polygon instead
Last updated 4 years ago by tmcw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (4 years ago)
  • 3.0.12                                ...           latest (4 years ago)

19 Versions

  • 3.0.12 [deprecated]           ...           4 years ago
  • 3.0.10 [deprecated]           ...           4 years ago
  • 3.0.7-canary.ae89c8b3                                ...           4 years ago
  • 3.0.7 [deprecated]           ...           4 years ago
  • 3.0.6 [deprecated]           ...           4 years ago
  • 3.0.5-canary.4f73aa1a                                ...           4 years ago
  • 3.0.5 [deprecated]           ...           5 years ago
  • 3.0.1 [deprecated]           ...           5 years ago
  • 3.0.0-canary.7879bf6c                                ...           5 years ago
  • 3.0.0-canary.2f5f7167                                ...           5 years ago
  • 1.0.2 [deprecated]           ...           5 years ago
  • 1.0.1 [deprecated]           ...           6 years ago
  • 1.0.0 [deprecated]           ...           6 years ago
  • 0.1.5 [deprecated]           ...           6 years ago
  • 0.1.4 [deprecated]           ...           6 years ago
  • 0.1.3 [deprecated]           ...           6 years ago
  • 0.1.2 [deprecated]           ...           6 years ago
  • 0.1.1 [deprecated]           ...           7 years ago
  • 0.1.0 [deprecated]           ...           7 years ago

Copyright 2014 - 2016 © taobao.org |