GeoBox.pad_wh(alignx=16, aligny=None)[source]

Possibly expand GeoBox by a few pixels.

Find nearest width/height that are multiples of the desired factor. And return a new geobox that is slighly taller and/or wider covering roughly the same region. The new geobox will have the same CRS and transform but possibly larger shape.

Return type: