Skip to main content
Solved

Aggregate only multipart geometries (or deaggregate only single part geometries)

  • January 27, 2022
  • 2 replies
  • 169 views

runneals
Supporter
Forum|alt.badge.img+27

I have a bunch of records with a GroupID attribute on them. Some GroupIDs will only have a single record/geometry, while others will have multiple records/geometries. When I use the Aggregator, it aggregates ALL the records, even the ones that only have a single geometry part.

How do I either aggregate only the truly multipart aggregates or deaggregate only the single part aggregates?

Best answer by daveatsafe

Hi @runneals​,

After the Aggregator, please use the GeometryRefiner transformer, which will convert the single geometry features to simple, while leaving the multi-geometry features as aggregate.

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

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • Best Answer
  • January 27, 2022

Hi @runneals​,

After the Aggregator, please use the GeometryRefiner transformer, which will convert the single geometry features to simple, while leaving the multi-geometry features as aggregate.


runneals
Supporter
Forum|alt.badge.img+27
  • Author
  • Supporter
  • 321 replies
  • January 27, 2022

Hi @runneals​,

After the Aggregator, please use the GeometryRefiner transformer, which will convert the single geometry features to simple, while leaving the multi-geometry features as aggregate.

@daveatsafe​ You're a rockstar! Literally tried every other combination of transformers except that one :P