RasterInterpretationCoercer
Alters the underlying interpretation of the bands of the raster geometry on the input features,使用指定的转换选项。
For example,具有三个解释带的输入光栅特征(uint16,Gray8,and Real64) could be converted to a raster feature with three bands of interpretation (Red8,Green8,and Blue8) or four bands of interpretation (Red16,格林16蓝16and Alpha16) in a single operation.
参数
解释
此参数选择目标解释以及位深度。Different interpretations allow for different conversion options to be used.如果光栅上的任何带区包含调色板,则目的地解释仅限于uint8,uint16或uint32。
Conversion Options
When converting to an interpretation with multiple components,such as RGB and RGBA,光栅应该正好有1个,三,or 4 bands.如果只提供一个波段,it will be cloned and converted to the appropriate interpretation.当转换为单一颜色或数字解释时,多个输入带将平均为一个输入带。
The RGBA to RGB parameter selects the action to perform when converting four bands representing an RGBA raster to three bands representing an RGB raster.
- 放下阿尔法带丢弃阿尔法带。
- 应用alpha带将所有RGB值与其对应的值相乘,标准化alpha值。
This parameter selects the action to perform when converting three bands representing an RGB raster to four bands representing an RGBA raster.
- Create opaque alpha band添加一个新的alpha带区,该带区具有所有单元格中数据类型的最大值。
- Create alpha band from nodata创建仅在数据单元格中具有数据类型最大值的新标注栏。当对于每个选定的波段,该单元格的值等于该条带的nodata值。如果任何单元格值不等于该条带的nodata值,单元格将被视为数据。Note that when this option is selected,要求所有输入波段都有一个nodata值。
这些参数选择在不同类型之间发生给定转换时要执行的操作。
- 铸件如果数据值包含在目标数据范围内,则非常有效且无损。如果超出范围,the Cast option allows overflow and rolls over the data values at the min and max of the destination data range,thus all values are contained in the destination range but if they rolled over may not reflect the source values very well.
- 有界铸件通过验证源值是否适合目标类型来改进基本强制转换,有效防止下溢;如果源值不合适,相应的目标值将被设置为目标数据类型中可能的最小值或最大值。
- 按数据值缩放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.
- 按数据类型缩放将源数据区域直接缩放到目标数据区域,而不管数据值位于何处。
This parameter specifies the action to perform when converting from a floating-point value to an integer.
- 回合rounds to floating-point value to the nearest integer.
- Ceiling获取大于或等于浮点值的下一个整数。
- Floorgets the next integer which is less than or equal to the floating-point value.
使用说明
每个光栅化预处理强制器对输入光栅执行转换。If multiple RasterInterpretationCoercers are used in sequence,然后进行多次转换;数据质量和翻译性能可能会受到影响。
此转换器不受光栅带和调色板选择的影响。
例子
相关变压器
- 这个流氓入侵者对单个波段执行类似的转换。
- 这个RasterPaletteInterpretationCoercer对调色板执行类似的转换。
编辑变压器参数
使用一组菜单选项,可以通过引用工作区中的其他元素来指定变压器参数。More advanced functions,例如高级编辑器和算术编辑器,are also available in some transformers.要访问这些选项的菜单,点击在适用参数旁边。更多信息,see变压器参数菜单选项.
Transformer Categories
FME许可级别
FME专业版及以上
Transformer History
此转换器替换RasterDatatype胁迫器和RasterColorModel胁迫器转换器。
搜索FME知识中心
在上搜索有关此变压器的示例和信息FME Knowledge Center.