fmeobjects.FMERasterTools.mosaic

FMERasterTools.mosaic(inputRasters, parms)

Mosaics multiple rasters into one raster. There are some assumptions of the inputRasters:

  • Same coordinate system.

  • Same number of selected bands.

  • Same band interpretation in each group of bands to be mosaicked when there is no palette.

  • Same number of selected palettes, either 0 or 1.

  • Same band nodata value or NULL when there is no palette.

  • Same value interpretation in the selected palette.

  • Same palette nodata value or NULL where there is a palette.

  • When compositing using alpha, each raster has exactly one alpha band.

  • When overlapping values is set to average, sum, or composite_using_alpha palettes are not supported.

Parameters:
  • inputRasters (list[FMERaster]) – Rasters to mosaic.

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

Possible parms are :

kFME_Mosaic_overlappingValues

Specifies how output cell values will be calculated when multiple rasters overlap.

kFME_Mosaic_nodataOverwrite

  • Yes or No (Default is No)

  • Specifies whether a nodata value can overwrite an existing real data value when they overlap. Only applies when mosaic_overlappingValues = last.

kFME_Mosaic_mergePalettes

  • Yes or No (Default is No)

  • Specifies how palettes will be treated when present. When set to Yes, selected palettes will be merged to create a single palette for the output band. When set to No, selected palettes will be accumulated on the output band without modification.

Return type:

FMERaster

Returns:

The mosaicked raster.

Raises:

FMEException – An exception is raised if an error occurred.