Skip to main content
Question

Pair all objects in aggregates/multipoints


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?

 

2 replies

ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • 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
  • June 18, 2019
ebygomm wrote:
  • 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!


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