fmeobjects.FMERasterTools.offset

FMERasterTools.offset(x, y, z, raster)

Performs offsetting on a raster.

If all the three x, y, z component values are 0 then no offsetting will be performed.

This method only works with numeric rasters without palettes.

Parameters:
  • x (float) – Offsets the x component of the raster origin.

  • y (float) – Offsets the y component of the raster origin.

  • z (float) – Offsets the data values of the raster.

  • raster (FMERaster) – The raster to offset by x-y-z components.

Return type:

FMERaster

Returns:

The raster after performing offsetting.

Raises:

FMEException – An exception is raised if an error occurred.