# square

Takes a bounding box and calculates the minimum square bounding box that would contain the input.
"接受一个边界框,计算包含输入的最小正方形边界框。

参数

参数 类型 描述
bbox BBox 按照西、南、东、北的顺序描述范围

返回

BBox - a square surrounding bbox

示例

var bbox = [-20, -20, -15, 0];
var squared = turf.square(bbox);
Last Updated: 6/23/2023, 10:33:35 PM