RasterTransform

class caris.coverage.RasterTransform(matrix, highest_level, pixel_type)

RasterTransform object

__init__()

Constructor

Keyword Arguments:
 
  • matrix ((ofsx, res_xx, res_xy, ofsy, res_yx, res_yy) of double) – transform matrix of 6 doubles
  • highest_level (int) – highest resolution level.
  • pixel_type( – class :.PixelType): The pixel type.
convertGeoToGrid()

Convert world coordinates to grid coordinates.

Parameters:
  • point_or_box – The world point or box to convert.
  • level (int, optional) – The resolution level at which to do the conversion.
Returns:

Grid coordinates

convertGridBox()

Convert grid box from one level to another.

Parameters:
  • source_level (int) – The source level.
  • dest_level (int) – The level to convert to.
  • grid_box – The grid box to convert.
Returns:

Grid box”

convertGridPoint()

Convert grid point from one level to another.

Parameters:
  • source_level (int) – The source level.
  • dest_level (int) – The level to convert to.
  • grid_point – The grid point to convert.
Returns:

Grid point”

convertGridToGeo()

Convert grid coordinates to world coordinates.

Parameters:
  • point_or_box – The grid point or box to convert.
  • level (int) – The resolution level at which to do the conversion.
Returns:

World Coordinates

expandGeo()

Expand world box to align with grid coordinates.

Parameters:
  • box – The world box to expand.
  • tlevel (int, optional) – The resolution level at which to do the conversion.
Returns:

World coordinates

highest_level

int – highest resolution level

matrix

tuple – Transform matrix of 6 doubles

pixel_type

PixelType – Pixel type