RasterCellValueRounder
Rounds off raster cell values.
Note: Note that floating point decimal values usually cannot be exactly represented. For example, the value 727.27 may actually be represented as 727.27002 when stored as a 32-bit floating point value. This property of floating point numbers may cause unexpected results when writing to text-based formats such as ESRIASCIIGRID. To avoid this, consider coercing floating point bands to real64 before using this transformer.
Parameters
Controls the number of decimal places to which the cell values are rounded.
A value of 0 causes the cell values to be rounded to the nearest integer. A value of 1 causes rounding to the nearest tenth. Negative values are allowed. A value of -1 causes rounding to the nearest 10.
Controls how the rounding will take place:
- Up: The cell values will always be rounded up.
- Down: The cell values will always be rounded down.
- Nearest (default): The cell values will be rounded up or down to the nearest value.
Usage Notes
This transformer supports raster band selection.
The RasterSelector can be used to modify selection.
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, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.