fmeobjects.FMERasterTools.reproject
- FMERasterTools.reproject(sourceCSName, destCSName, interpolation, cellResize, raster, parms)
Performs coordinate system reprojection on a raster.
Specifying the same destination and source values will cause no processing to occur. Specifying a source coordinate system that is not the coordinate system of the source raster will cause the source raster to be treated as if it had the specified coordinate system; reprojection will occur, but the results may not be meaningful.
- Parameters:
sourceCSName (str) – FME coordinate system name that the raster is currently tagged with.
destCSName (str) – Desired coordinate system of the raster.
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
cellResize (int) –
Specifies how the cell size of the output raster will be calculated. Choose one of:
FME_CELL_RESIZE_PRESERVE_NUM_CELLS
FME_CELL_RESIZE_SQUARE_CELLS
FME_CELL_RESIZE_PRESERVE_CELL_SHAPE
raster (FMERaster) – Raster to be processed.
parms (dict[str, str]) – (Optional) Specifies name-value pairs representing additional parameters. Currently, no additional parameters exist.
- Return type:
- Returns:
The raster after reprojection.
- Raises:
FMEException – An exception is raised if an error occurred.