Documentation

BBoxUtils
in package

AbstractYes

Utility class for BBox.

Table of Contents

Methods

generateBBoxFromPolygon()  : BBox|null
Generates a BBox from a polygon. Returns null if no polygon is provided.
generateBBoxFromPolygons()  : BBox|null
Generates a BBox from an array of polygons. Returns null if no polygons are provided.
mergeBBoxes()  : BBox|null
Merges an array of bboxes.

Methods

generateBBoxFromPolygon()

Generates a BBox from a polygon. Returns null if no polygon is provided.

public static generateBBoxFromPolygon(Polygon|null $polygon) : BBox|null
Parameters
$polygon : Polygon|null

Polygon to get the BBox of.

Return values
BBox|null

generateBBoxFromPolygons()

Generates a BBox from an array of polygons. Returns null if no polygons are provided.

public static generateBBoxFromPolygons(array<string|int, mixed> $polygons) : BBox|null
Parameters
$polygons : array<string|int, mixed>

Series of polygons to get the BBox of.

Return values
BBox|null

mergeBBoxes()

Merges an array of bboxes.

public static mergeBBoxes(array<string|int, mixed> $bboxes) : BBox|null
Parameters
$bboxes : array<string|int, mixed>

BBoxes to merge.

Return values
BBox|null

        
On this page

Search results