Skip to main content
Solved

Invert polygons


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.

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

2 replies

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

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


takashi
Evangelist
  • 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.


Reply


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