Skip to main content

I have a following problem: I want to group and build lines from points based on two different groupings. Firstly by category_id that indicates certain categories for the lines (number of categories varies from 1-7). Secondly by "line_number" that indicates consecutive measurements points (see first picture with four point lines). As a result (see second picture first line) or in another words I want lines where category change starts a new line within "line number"-group. Points have order_id so it is can build the lines in particular order. I've tried LineBuilder but can't figure out which aggregations/groupings I should do and in which order.

 

 

 

pointsresult

From the documentation:

"Connects input point features in the order they enter, forming linear or polygonal features."

So, the LineBuilder builds lines from points in the order how the points enter the transformer. What you need to do is:

  • Use a Sorter to fix the group by and point order. Something like, category, line id, point number. Without sample data hard to say how exactly.
  • Configure the LineBuilder, set Group By the correct groups.

Reply