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 ofreference
.- Return type
- Returns
The bounding box of
geobox
with respect to the pixel grid defined byreference
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.