Skip to main content
Solved

Split polygon by lines

  • November 9, 2018
  • 5 replies
  • 1050 views

mr_fme
Enthusiast
Forum|alt.badge.img+8

I need to split this polygon using as a reference the rows, how can I do this? These polygons are initially rows, which I transform into polygons using AreaBuilder. As a result it generates 2 polygons, however I need to fragment the polygon into more parts according to the rows.

Best answer by miladahmad

Try PolygonCutter from FME Hub

View original
Did this help you find an answer to your question?

5 replies

takashi
Influencer
  • November 9, 2018

A possible way is: send the polygon and the lines together into an Intersector, and use an AreaBuilder to create split polygons from the lines output via the Intersected port of the Intersector. If the lines may not cross the polygon entirely, consider using the LineExtender to extend them beforehand.


Forum|alt.badge.img
  • Best Answer
  • November 9, 2018

Try PolygonCutter from FME Hub


  • February 28, 2020

FWIW, @takashi's solution is massively quicker than the PolygonCutter, for my application anyway. I did find I had to send the polygons through a GeometryCoercer to convert them to lines before passing into the Intersector, ie. the polygons and lines both need to be the same geometry before the Intersector outputs both via the Intersected port.


joshuadamron
Contributor
Forum|alt.badge.img+7
hrw_jla wrote:

FWIW, @takashi's solution is massively quicker than the PolygonCutter, for my application anyway. I did find I had to send the polygons through a GeometryCoercer to convert them to lines before passing into the Intersector, ie. the polygons and lines both need to be the same geometry before the Intersector outputs both via the Intersected port.

Thanks for this tip it saved me some head scratching :-)


pdorio
Contributor
Forum|alt.badge.img+4
  • Contributor
  • November 23, 2023

This is my solution. Works great!2023-11-23_08h15_46


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