forked from Turfjs/turf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
1,365 additions
and
1,344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,42 @@ | ||
# turf-bbox-polygon | ||
|
||
[![build status](https://secure.travis-ci.org/Turfjs/turf-bboxPolygon.png)](http://travis-ci.org/Turfjs/turf-bboxPolygon) | ||
# bboxPolygon | ||
|
||
turf bboxPolygon module | ||
Takes a bbox and returns an equivalent [polygon](Polygon). | ||
|
||
**Parameters** | ||
|
||
### `turf.bbox-polygon(bbox)` | ||
- `bbox` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)>** an Array of bounding box coordinates in the form: `[xLow, yLow, xHigh, yHigh]` | ||
|
||
Takes a bbox and returns an equivalent Polygon|polygon. | ||
**Examples** | ||
|
||
|
||
### Parameters | ||
|
||
| parameter | type | description | | ||
| --------- | ----------------- | ---------------------------------------------------------------------------------- | | ||
| `bbox` | Array\.\<number\> | an Array of bounding box coordinates in the form: ```[xLow, yLow, xHigh, yHigh]``` | | ||
|
||
|
||
### Example | ||
|
||
```js | ||
```javascript | ||
var bbox = [0, 0, 10, 10]; | ||
|
||
var poly = turf.bboxPolygon(bbox); | ||
|
||
//=poly | ||
``` | ||
|
||
Returns **Feature<Polygon>** a Polygon representation of the bounding box | ||
|
||
--- | ||
|
||
**Returns** `Feature.<Polygon>`, a Polygon representation of the bounding box | ||
This module is part of the [Turfjs project](http://turfjs.org/), an open source | ||
module collection dedicated to geographic algorithms. It is maintained in the | ||
[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create | ||
PRs and issues. | ||
|
||
## Installation | ||
### Installation | ||
|
||
Requires [nodejs](http://nodejs.org/). | ||
Install this module individually: | ||
|
||
```sh | ||
$ npm install turf-bbox-polygon | ||
``` | ||
|
||
## Tests | ||
Or install the Turf module that includes it as a function: | ||
|
||
```sh | ||
$ npm test | ||
$ npm install turf | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.