odc.geo.geom.BoundingBox
- class odc.geo.geom.BoundingBox(left, bottom, right, top)[source]
Bounding box, defining extent in cartesian coordinates.
- __init__()
Methods
__init__
()buffered
(xbuff[, ybuff])Return a new BoundingBox, buffered in the x and y dimensions.
count
(value, /)Return number of occurrences of value.
from_points
(p1, p2)Construct
BoundingBox
from two points.from_xy
(x, y)Construct
BoundingBox
from x and y ranges.index
(value[, start, stop])Return first index of value.
transform
(transform)Map bounding box through a linear transform.
Attributes
bottom
Alias for field number 1
height
int(span_y)
left
Alias for field number 0
points
Extract four corners of the bounding box.
range_x
left, right
range_y
bottom, top
right
Alias for field number 2
shape
(int(span_y), int(span_x))
.span_x
Span of the bounding box along x axis.
span_y
Span of the bounding box along y axis.
top
Alias for field number 3
width
int(span_x)