odc.geo.geom.BoundingBox
- class odc.geo.geom.BoundingBox(left, bottom, right, top, crs=None)[source]
Bounding box, defining extent in cartesian coordinates.
Methods
__init__(left, bottom, right, top[, crs])boundary([pts_per_side])Points along the perimeter as a linear ring.
buffered(xbuff[, ybuff])Return a new BoundingBox, buffered in the x and y dimensions.
count(value)explore([map, tiles, attr, map_kwds])Plot BoundingBox on an interactive
foliumleaflet map for rapid data exploration.from_points(p1, p2[, crs])Construct
BoundingBoxfrom two points.from_transform(shape, transform[, crs])Construct
BoundingBoxfrom image shape and transform.from_xy(x, y[, crs])Construct
BoundingBoxfrom x and y ranges.index(value, [start, [stop]])Raises ValueError if the value is not present.
map_bounds()Convert to bounds in folium/ipyleaflet style.
qr2sample(n[, padding, with_edges, offset])Generate quasi-random sample of points within this boundingbox.
round()Expand bounding box to nearest integer on all sides.
to_crs(crs, **kw)Compute bounding box in other CRS.
transform(transform)Map bounding box through a linear transform.
Attributes
aoiInterop with pyproj.
aspectAspect ratio.
bboxbottomcrsheightint(span_y)leftpointsExtract four corners of the bounding box.
polygonrange_xleft, rightrange_ybottom, toprightshape(int(span_y), int(span_x)).span_xSpan of the bounding box along x axis.
span_ySpan of the bounding box along y axis.
topwidthint(span_x)