RasterBandInterpretationCoercer
Alters the underlying interpretation of the selected bands of the raster geometry on the input features, using the specified conversion options.
For example, an input raster feature with a single band of interpretation UInt8 could be converted to a single band of Gray8 or UInt16 data.
Parameters
此参数选择目标解释以及位深度。不同的解释允许使用不同的转换选项。如果选择用于转换的频段包含调色板,则目的地解释仅限于UINT8,UINT16或UINT32。
These parameters select the action to undertake when the given conversion between different types occurs. The Cast option simply uses C-style casts to convert the values. The Bounded cast option uses C-style casts to convert the values too, but also validates that the source values fit into the destination type, effectively preventing underflow and overflow; if a source value does not fit, the corresponding destination value will either be set to its type's minimum or maximum value. The Scale by data values option finds the minimum and maximum values of the source values and uses them to scale the values to the full range of the destination type. The Scale by data type option scales the source values while preserving all proportions in regard to the source and destination types' range.
This parameter specifies the action to perform when converting from a floating-point value to an integer.
- Round: rounds to floating-point value to the nearest integer.
- Ceiling: gets the next integer which is greater than or equal to the floating-point value.
- Floor: gets the next integer which is less than or equal to the floating-point value.
Usage Notes
- Each RasterBandInterpretationCoercer performs a conversion on the input raster. If multiple RasterBandInterpretationCoercers are used in sequence, then multiple conversions will take place. Data quality and translation performance may suffer.
- This transformer supports raster band selection. Therasterselector.can be used to modify the selection.
Related Transformers
- TheRasterInterpretationCoercer在整个栅格上执行类似的操作,例如将4个频段直接转换为RGBA。
- TheRasterPaletteInterpretationCoercerperforms similar conversions on palettes.
Editing Transformer Parameters
使用一组菜单选项,变压器参数s can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, clickbeside the applicable parameter. For more information, seeTransformer Parameter Menu Options.
Transformer Categories
FME Licensing Level
FME Professional edition and above
Transformer History
This transformer replaces the RasterDataTypeCoercer and RasterColorModelCoercer transformers.
搜索FME知识中心
搜索有关此变压器的样本和信息FME Knowledge Center.