Skip to main content
Solved

LINE TO POLYLINE

  • January 31, 2013
  • 1 reply
  • 81 views

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

 

 

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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+21
  • 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.

 

 


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