You can use attribute values in a Text or Arithmetic Editor instead of fixed numbers when specifying an index number to extract values from a list.

Prepare for the FME Certified Professional Exam. Study with flashcards and multiple-choice questions; each question includes hints and explanations. Ensure your success!

Multiple Choice

You can use attribute values in a Text or Arithmetic Editor instead of fixed numbers when specifying an index number to extract values from a list.

Explanation:
The ability to drive the index with an attribute value is supported, because in the Text and Arithmetic Editors you can build expressions that reference feature attributes and calculations. The index used to extract an item from a list is just a number, so you can compute that number from other attributes or results of arithmetic, and then use it to pick the corresponding element. This makes list extraction dynamic per feature rather than tied to a fixed value. For example, if you have a list and an attribute that specifies which item to take, you can reference that attribute as the index in your editor’s expression. That flexibility is why this is true and commonly used.

The ability to drive the index with an attribute value is supported, because in the Text and Arithmetic Editors you can build expressions that reference feature attributes and calculations. The index used to extract an item from a list is just a number, so you can compute that number from other attributes or results of arithmetic, and then use it to pick the corresponding element. This makes list extraction dynamic per feature rather than tied to a fixed value. For example, if you have a list and an attribute that specifies which item to take, you can reference that attribute as the index in your editor’s expression. That flexibility is why this is true and commonly used.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy