rasterexpressionEvaluator.
Evaluates expressions on each cell in a raster, such as algebraic operations or conditional statements.
Input Ports
功能通过端口输入一种和B.。The cardinality of the input is required to be one of the following cases:
- 一个或多个一种S.那noB.S.
- one一种那一个或多个B.S.
请注意B.port is only visible if
When both一种和B.features are provided, the single一种input will be paired with eachB.输入。
Note the following restrictions on input features:
- 输入功能必须具有光栅几何。
- 一种ll paired rasters must have the same number of rows and columns.
- Either all bands used in the same expression must have the same nodata value, or all bands used in the same expression must have no nodata value.
- 没有乐队可能有一个调色板。
输出端口
每个输入对的变压器的输出将是单个栅格功能。输出栅格将具有n频带,其中n是解释/表达对的数量,指定通过乐队表达式parameter.
参数
此参数指定允许的输入功能。如果One Raster选择,然后only一种input features are permitted. If两个栅格选择,然后一种和B.input features are permitted.
如果anyGroup By每组属性,然后将胎面ted independently. This allows a single transformer to operate on multiple pairs of一种S.和B.s。请注意,此参数不适用Mode是One Raster; in that case, each raster is considered individually and there are no groupings.
This table is used to specify how to calculate and interpret one or more bands in the output raster. Each row of the table represents a different band in the output raster.
表的第一列指示将如何解释每个频段。有效的解释是保留那汽车那Gray8那灰色16.那red8.那Red16那Green8那格林16.那蓝色那B.lue16那一种lpha8那一种lpha16那uint8.那Int8那UInt16那Int16那UInt32那Int32那UInt64那Int64那REAL32那REAL64。一种value of保留means that if all input bands share the same interpretation, the output band will preserve that interpretation. If the input bands do not share the same interpretation,保留是相同的汽车。一种value of汽车means the output interpretation will be automatically determined based on the data types used to perform the calculations.
The second column of the table indicates the expression used to calculate each output band. A simple expression might be something like "(A[0] + B[0])/2", which calculates the average of the first band of input一种和inputB.。Note that this parameter is case-sensitive.
When pairs of inputs are being operated on (i.e., the expression references both input一种和B.), the output feature will have all the attributes from both feature一种和B.。如果the same attribute exists on both input features, then the attribute value from featureB.将是首选的。同样,输出栅格将具有光栅的属性B.。当仅在(即,表达式仅引用输入时,仅操作单个输入时一种),功能属性和栅格属性将保持不变。
使用笔记
Note that when converting between different data types, a Bounded Cast is used. As a result, when a calculated value does not fit in the specified destination interpretation, the corresponding destination value will either be set to the minimum or maximum value possible in the destination data type.
Editing Transformer Parameters
Using a set of menu options, transformer parameters 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许可级别
FME专业版及以上
Search FME Knowledge Center
Search for samples and information about this transformer on theFME知识中心。