Show / Hide Table of Contents

Method ToDiscreteFieldFunction

ToDiscreteFieldFunction()

Composes a function that casts, point-wise, float values from this function's field result to integer values across its extent.

Declaration
public DiscreteFieldFunction ToDiscreteFieldFunction()
Returns
Type Description
DiscreteFieldFunction

A function that casts float values from this function's field result to integer values.

Remarks

Values that are within the representable range of a 32-bit signed integer are rounded to the nearest integer by discarding the fractional part then cast. Values that are not within the representable range of a 32-bit signed integer are clamped to be within the representable range then rounded to the nearest integer by discarding the fractional part then cast. The function result has no data where this function's field result has no data.

The function result extent equals that of this function's field result.

Use Floor(), Round(), and Ceil() to control rounding before casting.

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.