sample method

DiscreteFieldSampleFunction sample(
  1. ArcGISPoint position
)

Composes a function that samples the result of this field function at a position.

DiscreteFieldSampleFunction.evaluate fails if DiscreteFieldSampleFunction.position is null. However, creating a DiscreteFieldSampleFunction with no position can be useful in an interactive or dynamic analysis. A null initial position lets you define an interactive or dynamic analysis before its position is available. You can then defer evaluation until a position has been populated.

Parameters:

  • position — The position at which to sample the result of this field function.

Return Value: A function that samples the result of this field function at a position.