Skip to main content
Solved

I want to convert a multipolygon layer in a singlepoint inside layer

  • September 7, 2021
  • 2 replies
  • 32 views

Source Origin: Multipolygon layer

Destinity: SinglePoint Layer

 

 

If I use the CenterPointReplacer with the "Any Inside Point" mode checked the result is rejected.

And if I use other of the two modes, the result is a singlepoint outside the ancient multipolygon layer, and I need only one point inside the ancient area.

 

 

Does anyone know the correct way to obtain it?

Best answer by nielsgerrits

One thing you could do is generate an ID for each multipolygon (UUIDGenerator) then explode the collection (DeAggregator), filter out one polygon for each multipolygon (Sampler, group by ID) and send that through the CenterPointReplacer.

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+62
  • Best Answer
  • September 7, 2021

One thing you could do is generate an ID for each multipolygon (UUIDGenerator) then explode the collection (DeAggregator), filter out one polygon for each multipolygon (Sampler, group by ID) and send that through the CenterPointReplacer.


  • Author
  • September 7, 2021

OK, thanks!!!!

👍 👍 👍