Skip to main content
Solved

Promote polygon to multipolygon


I have a stream of features containing polygons and multipolygons.

I would like to identify only the polygons and promote them to multipolygons (containing one polygon). I tried GeometryAggregator but it is converting multipolygons into geometryCollection(multipolygon) which I don't want.

Must be something simple that I just can't see. Any help appreciated.

Simon

Best answer by nielsgerrits

You can use an AggregateFilter to split Aggregates from non Aggregates. Next you can use an Aggregator to create Aggregates.

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

2 replies

nielsgerrits
VIP
  • Best Answer
  • January 19, 2023

You can use an AggregateFilter to split Aggregates from non Aggregates. Next you can use an Aggregator to create Aggregates.


nielsgerrits wrote:

You can use an AggregateFilter to split Aggregates from non Aggregates. Next you can use an Aggregator to create Aggregates.

The AggregateFilter/Aggregator combo did the trick, thanks.


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