fmeobjects.FMERasterTools.applyRotation
- FMERasterTools.applyRotation(interpolation, raster)
Performs rotation on a raster to remove the rotation properties but maintain a similar visual image.
The raster will be rotated by the negative of the existing rotation angle of the input raster so that the resultant raster will have a rotation angle of zero.
- Parameters:
interpolation (int) –
Interpolation type of the raster. Choose one of:
FME_INTERPOLATION_NEARESTNEIGHBOR
FME_INTERPOLATION_BILINEAR
FME_INTERPOLATION_BICUBIC
FME_INTERPOLATION_AVERAGE4
FME_INTERPOLATION_AVERAGE16
FME_INTERPOLATION_SOURCE
raster (FMERaster) – Raster object to apply rotation to.
- Return type:
- Returns:
The raster after applying rotation.
- Raises:
FMEException – An exception is raised if an error occurred.