3.0.12 • Published 9 years ago
turf-square v3.0.12
turf-square
turf square module
turf.square(bbox)
Takes a bounding box and calculates the minimum square bounding box that would contain the input.
Parameters
parameter | type | description |
---|---|---|
bbox | Array. | a bounding box |
Example
var bbox = [-20,-20,-15,0];
var squared = turf.square(bbox);
var features = turf.featurecollection([
turf.bboxPolygon(bbox),
turf.bboxPolygon(squared)]);
//=features
Installation
Requires nodejs.
$ npm install turf-square
Tests
$ npm test
3.0.12
9 years ago
3.0.10
9 years ago
3.0.7-canary.ae89c8b3
9 years ago
3.0.5
9 years ago
3.0.1
9 years ago
3.0.0-canary.7879bf6c
9 years ago
3.0.0-canary.2f5f7167
9 years ago
1.0.1
10 years ago
1.0.0
10 years ago
0.1.3
11 years ago
0.1.2
11 years ago
0.1.1
11 years ago
0.1.0
11 years ago