Skip to main content
Question

Line Divider condiotion

  • October 1, 2018
  • 6 replies
  • 58 views

Forum|alt.badge.img

Hello! I need to divide lines into length:MEAN- calculated in another transformer. I used LineDivider for this but the line dividing should be ended if the last line segment is smaller than MEAN.

It means that the last divided section can not be smaller than the MEAN value.

I tried to create conditions in ParameterCondition but nothing came of it..

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.

6 replies

takashi
Celebrity
  • 7843 replies
  • October 1, 2018
How did you calculate the mean value?

 

 


Forum|alt.badge.img
  • Author
  • 14 replies
  • October 1, 2018
How did you calculate the mean value?

 

 

by StatisticsCalculator

 

 


takashi
Celebrity
  • 7843 replies
  • October 1, 2018
I thought the mean value was calculated by dividing the line length by the number of segments. I'm unclear what the mean value calculated by the StatisticsCalculator represents. Could you please explain what you are going to achieve?

 

 


takashi
Celebrity
  • 7843 replies
  • October 1, 2018
Maybe I got it. "MEAN" is not the mean of the length. You need to divide a line by a value just called "MEAN". Here, the word "MEAN" itself does not have any particular meaning. And, the requirement is, not to divide the last two segments.

 

Right?

 

 


takashi
Celebrity
  • 7843 replies
  • October 1, 2018

If I understand your requirement correctly, this workflow might help you. Assuming that the input feature has a line geometry and an attribute called '_mean', which stores desired length of each resulting segment except the last one.


Forum|alt.badge.img
  • Author
  • 14 replies
  • October 1, 2018

If I understand your requirement correctly, this workflow might help you. Assuming that the input feature has a line geometry and an attribute called '_mean', which stores desired length of each resulting segment except the last one.

That's exactly what i wanted to achieve! Thank you very much @takashi, it works great