Skip to main content
Solved

Promote polygon to multipolygon

  • January 19, 2023
  • 2 replies
  • 127 views

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.

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

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • 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.


  • Author
  • 7 replies
  • January 19, 2023

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.