Skip to main content
Solved

Invert polygons

  • April 14, 2017
  • 2 replies
  • 119 views

I have the sea as polygons in an esri shapefile. But now I need to invert this - I need to make polygons of everything that is not sea. How do I do this? I have tried searching for FME help on "inverting polygons" and other related, but no luck, there must be such an transformer though... :) ?

Thanks,

Ben

Best answer by takashi

Hi @benjamin, if you need to get continents and islands surrounded by the sea, send the sea polygon to a DonutHoleExtractor. Then, the land areas will be output via the Hole port.

If you need to get an outer donut area surrounding the sea, create an enough large area that contains the sea, then send the large area and the original sea to a DonutBuilder (Drop Holes: Yes) together.

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.

2 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • April 14, 2017

I would filter out the sea and use the AreaBuilder to create polygons from the rest.


takashi
Celebrity
  • Best Answer
  • April 14, 2017

Hi @benjamin, if you need to get continents and islands surrounded by the sea, send the sea polygon to a DonutHoleExtractor. Then, the land areas will be output via the Hole port.

If you need to get an outer donut area surrounding the sea, create an enough large area that contains the sea, then send the large area and the original sea to a DonutBuilder (Drop Holes: Yes) together.