Skip to main content
Question

Line Divider condiotion


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..

6 replies

takashi
Contributor
  • October 1, 2018
How did you calculate the mean value?

 

 


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

 

 

by StatisticsCalculator

 

 


takashi
Contributor
  • 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
Contributor
  • 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
Contributor
  • 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
  • October 1, 2018
takashi wrote:

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

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings