datacube.utils.geometry.BoundingBox

class datacube.utils.geometry.BoundingBox[source]

Bounding box, defining extent in cartesian coordinates.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__

Initialize self.

buffered(ybuff, xbuff)

Return a new BoundingBox, buffered in the x and y dimensions.

count(value)

from_points(p1, p2)

BoundingBox from 2 points :type p1: Tuple[float, float] :param p1: (x, y) :type p2: Tuple[float, float] :param p2: (x, y)

from_xy(x, y)

BoundingBox from x and y ranges

index(value, [start, [stop]])

Raises ValueError if the value is not present.

transform(transform)

Transform bounding box through a linear transform

Attributes

bottom

Alias for field number 1

height

int

left

Alias for field number 0

points

Extract four corners of the bounding box

range_x

Tuple[float, float]

range_y

Tuple[float, float]

right

Alias for field number 2

span_x

float

span_y

float

top

Alias for field number 3

width

int