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_NEARESTNEIGHBORFME_INTERPOLATION_BILINEARFME_INTERPOLATION_BICUBICFME_INTERPOLATION_AVERAGE4FME_INTERPOLATION_AVERAGE16FME_INTERPOLATION_SOURCEcellResize (int) –
Specifies how the cell size of the output raster will be calculated. Choose one of:
FME_CELL_RESIZE_PRESERVE_NUM_CELLSFME_CELL_RESIZE_SQUARE_CELLSFME_CELL_RESIZE_PRESERVE_CELL_SHAPEraster (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.