By setting the Group By parameter to an attribute while using the LineBuilder transformer, a new line will be started whenever the attribute value changes between sequential features.

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

By setting the Group By parameter to an attribute while using the LineBuilder transformer, a new line will be started whenever the attribute value changes between sequential features.

Explanation:
LineBuilder builds polylines by streaming features and joining coordinates as long as the grouping value stays the same. When you set Group By to an attribute, the current line continues while consecutive features share that attribute’s value, and as soon as the next feature has a different value, a new line starts with that feature. So the behavior described—a new line being started whenever the attribute value changes between sequential features—happens by design. For example, if features carry route_id values of 1, 1, 2, 2, 3 in order, you’ll get one line for route_id 1, then a new line for route_id 2, and another for route_id 3. If the input isn’t ordered by the attribute, you may see additional line breaks corresponding to the observed order; sorting by the attribute before the LineBuilder helps ensure lines align with each attribute value. Therefore, the statement is true.

LineBuilder builds polylines by streaming features and joining coordinates as long as the grouping value stays the same. When you set Group By to an attribute, the current line continues while consecutive features share that attribute’s value, and as soon as the next feature has a different value, a new line starts with that feature. So the behavior described—a new line being started whenever the attribute value changes between sequential features—happens by design. For example, if features carry route_id values of 1, 1, 2, 2, 3 in order, you’ll get one line for route_id 1, then a new line for route_id 2, and another for route_id 3. If the input isn’t ordered by the attribute, you may see additional line breaks corresponding to the observed order; sorting by the attribute before the LineBuilder helps ensure lines align with each attribute value. Therefore, the statement is true.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy