3.0.12 • Published 8 years ago

turf-square v3.0.12

Weekly downloads
11,354
License
MIT
Repository
github
Last release
8 years ago

turf-square

build status

turf square module

turf.square(bbox)

Takes a bounding box and calculates the minimum square bounding box that would contain the input.

Parameters

parametertypedescription
bboxArray.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

8 years ago

3.0.10

8 years ago

3.0.5

8 years ago

3.0.1

8 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago