Solved

extend a line to an edge of a polygon

  • 7 March 2022
  • 2 replies
  • 49 views

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

icon

Best answer by nielsgerrits 7 March 2022, 10:28

View original

2 replies

Userlevel 6
Badge +32

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 

Reply