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:
Possible parms are :
Specifies how output cell values will be calculated when multiple rasters overlap.
kFME_Mosaic_overlappingValues_last
(Default) The last value.
kFME_Mosaic_overlappingValues_min
The minimum value.
kFME_Mosaic_overlappingValues_max
The maximum value.
kFME_Mosaic_overlappingValues_average
The average of all values.
kFME_Mosaic_overlappingValues_sum
The sum of all values.
kFME_Mosaic_overlappingValues_compositeUsingAlpha
Values will be blended based on the alpha band.
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.
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:
- Returns:
The mosaicked raster.
- Raises:
FMEException – An exception is raised if an error occurred.