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
Did this help you find an answer to your question?

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+54
  • Best Answer
  • March 7, 2022

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.

nielsgerrits wrote:

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 


Reply


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