Method ReplaceIf
ReplaceIf(BooleanFieldFunction, float)
Composes a function that preserves values from this function's field result or replaces them with a constant value.
Declaration
public ContinuousFieldFunction ReplaceIf(BooleanFieldFunction selection, float value)
Parameters
| Type | Name | Description |
|---|---|---|
| BooleanFieldFunction | selection | A selection. |
| float | value | The float value to be used when replacing. |
Returns
| Type | Description |
|---|---|
| ContinuousFieldFunction | A function that preserves values from this function's field result or replaces them with a constant value. |
Remarks
Values are determined 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 the selection is 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.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |
ReplaceIf(BooleanFieldFunction, ContinuousFieldFunction)
Composes a function that preserves values from this function's field result or replaces them with values from another.
Declaration
public ContinuousFieldFunction ReplaceIf(BooleanFieldFunction selection, ContinuousFieldFunction otherField)
Parameters
| Type | Name | Description |
|---|---|---|
| BooleanFieldFunction | selection | A selection. |
| ContinuousFieldFunction | otherField | The continuous field function to draw values from when replacing. |
Returns
| Type | Description |
|---|---|
| ContinuousFieldFunction | A function that preserves values from this function's field result or replaces them with values from another. |
Remarks
Values are replaced point-wise across the spatial intersection of the selection with the union of the two
function's field results. Where the selection is true, values from the other field are returned. Where the
selection is false, values from this function's field result are returned. The function result has no data
where the selection or the selected field has no data.
The function result extent is the intersection of the selection with the union of this function's field result and the other.
The spatial reference of this function's field result, the other, and the selection must be equivalent.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |