Skip to main content
Solved

LINE TO POLYLINE

  • January 31, 2013
  • 1 reply
  • 108 views

tbs_gis_team
Contributor
Forum|alt.badge.img+3
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

Best answer by davideagle

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.

 

 

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.

1 reply

davideagle
Contributor
Forum|alt.badge.img+22
  • Contributor
  • Best Answer
  • January 31, 2013
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.