Skip to main content
Solved

sort lines after clipping

  • June 1, 2017
  • 5 replies
  • 9 views

franco69
Contributor
Forum|alt.badge.img+8

I have a route and clip it against areas....but i need the result in order of the flow direction of the route.....which parameter sorts me that because now the result is in no order and when i put a count on it it is no logical order.

So please help me... i think its no t abig problem for u guys

Thx

 

Franco

Best answer by david_r

Before Clipper:

  • MeasureGenerator

After Clipper

  • MeasureExtractor on first vertex (index = 0)
  • Sorter on _point_measure
  • MeasureRemover

Of course, if your route already has measures you should skip the MeasureGenerator and the MeasureRemover.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

david_r
Celebrity
  • June 1, 2017

Are your features in the right order before the Clipper? If so, you could insert a Counter before the Clipper, and then a Sorter on the _count value after the Clipper. This would restore the original feature order.


franco69
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • June 1, 2017

i have only 1 feature (line) which is clipped against many areas and as a result i get many lines without the right order


david_r
Celebrity
  • Best Answer
  • June 1, 2017

Before Clipper:

  • MeasureGenerator

After Clipper

  • MeasureExtractor on first vertex (index = 0)
  • Sorter on _point_measure
  • MeasureRemover

Of course, if your route already has measures you should skip the MeasureGenerator and the MeasureRemover.


takashi
Celebrity
  • June 1, 2017

Hi @franco69, here is another approach, just for your information.


franco69
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • June 1, 2017

Thank you both very much !