Skip to main content
Solved

extend a line to an edge of a polygon


Hello,

After using the CenterLineReplacer transformer on a ploygon I get the following result. 

Is it possible to extend the line that was created before so that it reaches the edge of the polygon? 

 

Thanks for your help

Best answer by nielsgerrits

How I do this:

  • Generate ID for polygon.
  • Generate centerline from polygon.
  • Extend centerline using LineExtractor, using a large number.
  • Clip the centerline by the original polygon, grouped by ID, keeping only inside.
View original
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.

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+67

How I do this:

  • Generate ID for polygon.
  • Generate centerline from polygon.
  • Extend centerline using LineExtractor, using a large number.
  • Clip the centerline by the original polygon, grouped by ID, keeping only inside.

How I do this:

  • Generate ID for polygon.
  • Generate centerline from polygon.
  • Extend centerline using LineExtractor, using a large number.
  • Clip the centerline by the original polygon, grouped by ID, keeping only inside.

thank you for your message. i will try like this