Method ReplaceIf
ReplaceIf(BooleanFieldFunction, int)
Composes a function that preserves values from this function's field result or replaces them with a constant value.
Declaration
public DiscreteFieldFunction ReplaceIf(BooleanFieldFunction selection, int value)
Parameters
| Type | Name | Description |
|---|---|---|
| BooleanFieldFunction | selection | A selection. |
| int | value | The integer value to be used when replacing. |
Returns
| Type | Description |
|---|---|
| DiscreteFieldFunction | 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 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, DiscreteFieldFunction)
Composes a function that preserves values from this function's field result or replaces them with values from another.
Declaration
public DiscreteFieldFunction ReplaceIf(BooleanFieldFunction selection, DiscreteFieldFunction otherField)
Parameters
| Type | Name | Description |
|---|---|---|
| BooleanFieldFunction | selection | A selection. |
| DiscreteFieldFunction | otherField | The continuous field function to draw values from when replacing. |
Returns
| Type | Description |
|---|---|
| DiscreteFieldFunction | A function that preserves values from this function's field result or replaces them with values from another. |
Remarks
Values are determined, 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 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 |