fmeobjects.FMERasterTools.scale

FMERasterTools.scale(x, y, z, raster, parms)

Performs scaling on a raster.

If all the three ‘x’, ‘y’, and ‘z’ values are zero then no scaling will be performed.

Parameters:
  • x (int) – Scaling factor for the x-spacing (and optionally origin) of the raster.

  • y (int) – Scaling factor for the y-spacing (and optionally origin) of the raster.

  • z (int) – Scaling factor for the data values of the raster.

  • raster (FMERaster) – Raster Object to apply scaling to.

  • parms (dict[str, str]) – (Optional) Specifies name-value pairs representing additional parameters.

kFME_RasterScale_scaleSpacingOnly

  • Yes or No (Default is No)

  • Specifies whether the scaling should affect only the spacing, or all raster properties (i.e. spacing, origin, rotation). Affecting all raster properties means scaling a raster will behave similarly to scaling all other geometries.

Return type:

FMERaster

Returns:

The raster after scaling.

Raises:

FMEException – An exception is raised if an error occurred.