Skip to main content

Hello everyone,
I am looking to linearize hedge polygons generated by AI. Since linearization is an iterative process, I need to cut the godzillas into smaller polygons to reduce computation time.

I have already tried using the Chopper transformer to make cuts, but unfortunately, at the cut points, the linear features lose their continuity, as you can see in the screenshot below.

The offsets are several meters, so I don’t think post-processing to reconnect the linear features afterward is a good solution—I might end up connecting the wrong ones.

I am therefore looking to cut my polygons along lines perpendicular to the median axis of the polygons.

Below, I have attached my current FME workflow. I believe what I’m missing is the creation of the perpendicular lines and the interval at which to create them.

If you know the transformers missing and their links it would be amazing. 

If you have any other ideas, I’d love to hear them!

Thank you all.

Maybe the BoundsSplitter from FME Hub can be of help here, see attached workspace.

 


Thanks ​@geomancer ! 

 

I’ve tried it but unfortunately I think my polygones aren’t regular enough for the algorithm to detect their orientation correctly. So the line creation is still not perpendicular to the median axis. 

But thanks for the transformer, I might end up using it still! 

 


What terrible polygons!

I looked at a way of cutting up large polygons a few years ago. That was only at intersections though.

You can find the workspace here. Maybe it will give you some new ideas.

Good luck!


Reply