Skip to main content
Solved

LINE TO POLYLINE

  • 31 January 2013
  • 1 reply
  • 41 views

I need to be able to change 2 point lines that are in a source file to poylines to be wrtoe to an SDF writer. I need this so I do not have to types of lines in my final exported file.

 

 

Thanks,

 

Chad
Hi Chad...

 

  • CoordinateCounter, then
  • Tester - set it to _coordcount = 2
    • FAILED = allow features to continue to SDF output
    • PASSED = Add a LengthCalculator, then
  • Followed by an ExpressionEvaluator set to @Value(_length)/2, then
  • A Densifier set to densify with an Interval based on the _result attribute from your ExpressionEvaluator.

 

That process adds an extra node to your 2 noded lines, in the middle to make them have 3 nodes! Now you have all polylines... Drop a GeometryOGCValidator on the end to make sure you have all valid geometry...

 

 

Hope that works for you.

 

 


Reply