replaceWithValueIf method
- required BooleanFieldFunction selection,
- required bool value,
Composes a function that preserves values from this function's field result or replaces them with a constant value, point-wise across the extent of this function's field result based on a selection.
Where the selection is true, the specified constant value is returned. Where false, values from this function's field result are returned. The function result has no data where the selection or this function's field result has no data.
The function result extent is the intersection of the selection with this function's field result.
The spatial reference of this function's field result and the selection must be equivalent.
Parameters:
selection— A selection.value— The boolean value to be used when replacing.
Return Value: A function that preserves values from this function's field result or replaces them with a constant value.