Skip to main content
Question

Pair all objects in aggregates/multipoints

  • June 18, 2019
  • 2 replies
  • 25 views

Forum|alt.badge.img

Hi,

I have a file with a 10 points where I need to combine all points to multipoints. It shall produce 100 multipoints and each object should contain 2 points(one combination) .

Its more or less a simple cross join without a database. I can produce all the points with unconditional merging in the feature merger but cant figure out how to aggregate them pairwise. The Featurejoiner will do the jobb but it doesnt allow me to keep the attributes

 

Anyone have an idea?

 

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

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • June 18, 2019
  • Use a geometryextractor to store the geometry prior to the unconditional featuremerge.
  • Build a list in the featuremerger
  • Explode the list to get your 100 features choosing to prefix the list attribute.
  • Give each point an id with a counter, and send into aggregator
  • In parallel replace the geometry with the geometry stored in the attribute and send that into the aggregator too. Group on the id you created with the counter


Forum|alt.badge.img
  • Author
  • 5 replies
  • June 18, 2019
  • Use a geometryextractor to store the geometry prior to the unconditional featuremerge.
  • Build a list in the featuremerger
  • Explode the list to get your 100 features choosing to prefix the list attribute.
  • Give each point an id with a counter, and send into aggregator
  • In parallel replace the geometry with the geometry stored in the attribute and send that into the aggregator too. Group on the id you created with the counter

Worked like a charm. Thanks a lot!