odc.geo.geobox.bounding_box_in_pixel_domain

odc.geo.geobox.bounding_box_in_pixel_domain(geobox, reference, tol=1e-08)[source]

Bounding box of geobox in pixel space of reference.

Return type

BoundingBox

Returns

The bounding box of geobox with respect to the pixel grid defined by reference when their coordinate grids are compatible. Two geoboxes are compatible when they have the same CRS, same pixel size and orientation, and are related by whole pixel translation.

Raises

ValueError when two geoboxes are not pixel-aligned.