odc.geo.geobox.GeoBox

class odc.geo.geobox.GeoBox(shape, affine, crs)[source]

Defines the location and resolution of a rectangular grid of data, including it’s CRS.

Parameters
__init__(shape, affine, crs)[source]

Methods

__init__(shape, affine, crs)

buffered(xbuff[, ybuff])

Produce a tile buffered by xbuff, ybuff (in CRS units).

from_geopolygon(geopolygon, resolution[, ...])

Construct GeoBox from a polygon.

is_empty()

Check if geobox is "empty".

Attributes

alignment

Alignment of pixel boundaries in CRS units.

coordinates

Query coordinates.

coords

Query coordinates.

crs

Coordinate Reference System of the GeoBox.

dimensions

List of dimension names of the GeoBox.

dims

List of dimension names of the GeoBox.

geographic_extent

GeoBox extent in EPSG:4326.

height

Height in pixels (ny).

resolution

Resolution, pixel size in CRS units.

shape

Shape in pixels (height, width).

transform

Linear mapping from pixel space to CRS.

width

Width in pixels (nx).