Skip to main content

Hi, fellow FMEers! I a problem that I cannot solve. I want to present 3D data along a line with breakpoints. In my script I want the line to be presented as a straight line (a profile).

 

It is important that the length of the line parts are correct but it doesn't matter where the resulting parts start.

 

The data input line is drawn from start to end but can begin and end anywhere (from west to east, north to south and so forth...).

 

Any hints or suggestions?

 

image

You could split up the parts (Deaggregator and/or Chopper), followed by a LengthCalculator to get the 3D length of each part as an attribute. You can then iterate over the parts and reconstruct them in 2D space, e.g. using the VertexCreator (Replace with point + Add point). If you start at (0,0) and go from there it should be easy to line them up. You can then shift them later, if necessary (Offsetter, or the like).


Credits to my buddies @work, this was a team effort :)

  • Chopper to chop the line into lines of 2 vertices.
  • LengthCalculator to get 3D length.
  • StatisticsCalculator to calculate cumulative lengths.
  • VertexCreators to recreate segments.

 

 


You could split up the parts (Deaggregator and/or Chopper), followed by a LengthCalculator to get the 3D length of each part as an attribute. You can then iterate over the parts and reconstruct them in 2D space, e.g. using the VertexCreator (Replace with point + Add point). If you start at (0,0) and go from there it should be easy to line them up. You can then shift them later, if necessary (Offsetter, or the like).

@david_r​  Thank you, David! Much appreciated.


Credits to my buddies @work, this was a team effort :)

  • Chopper to chop the line into lines of 2 vertices.
  • LengthCalculator to get 3D length.
  • StatisticsCalculator to calculate cumulative lengths.
  • VertexCreators to recreate segments.

 

 

@nielsgerrits​ And for that team effort I'm very grateful. Thank you so much!


Reply