Skip to main content
Solved

Split polygon by lines

  • November 9, 2018
  • 5 replies
  • 1332 views

mr_fme
Enthusiast
Forum|alt.badge.img+9

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

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.

5 replies

takashi
Celebrity
  • 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+8
  • Contributor
  • July 20, 2021

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+8
  • Contributor
  • November 23, 2023

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