def bounds_to_ranges(out_bounds=None, in_affine=None, in_shape=None):
return itertools.chain(<EOL>*from_bounds(<EOL>*out_bounds, transform=in_affine, height=in_shape[-<NUM_LIT:2>], width=in_shape[-<NUM_LIT:1>]<EOL>).round_lengths(pixel_precision=<NUM_LIT:0>).round_offsets(pixel_precision=<NUM_LIT:0>).toranges()<EOL>)<EOL>
Return bounds range values from geolocated input.

Parameters
----------
out_bounds : tuple
    left, bottom, right, top
in_affine : Affine
    input geolocation
in_shape : tuple
    input shape

Returns
-------
minrow, maxrow, mincol, maxcol