fmeobjects.FMERasterTools.rotate

FMERasterTools.rotate(rotationAngle, raster)

Adjusts the existing rotation angle on a raster by the specified ‘rotationAngle’.

The ‘rotationAngle’ specifies a counter clockwise (CCW) angle of rotation in degrees where 0 degrees is at 3 o-clock. Negative rotations are acceptable. Angles will be adjusted to be between 0 (inclusive) and 2PI (exclusive).

If the ‘rotationAngle’ is equal to 0 then no rotation will be performed.

Parameters:
  • rotationAngle (float) – Counter Clockwise angle of rotation in degrees. Negative rotations are acceptable.

  • raster (FMERaster) – The raster object to apply the rotation to.

Return type:

FMERaster

Returns:

The raster after rotation.

Raises:

FMEException – An exception is raised if an error occurred.