Skip to main content

Hi,

I'm having difficulties with the following problem:

I'm having X polygons (with unique ID)(lets assume 1000 polygons) and Y points inside those polygons. First I do colorsetter so see which polygons are disconnected. So I have X polygons with an attribute _color (with 5 different possible values). Then I use spatial overlay to know which points are inside a certain polygon and in the end I'm using a statistics calculator to count the amount of points inside the polygon. As end result I have X polygons with as attributes: unique ID, _color and count of points.

Now I want to split these X polygons into Z groups (public parameter, let's assume 10), but in a way that these 10 groups contain sort or less the same amount of points.

Does anyone has some ideas to group them on an average? I don't mind the amount of polygons in a group. ex group 1 can contain only 1 polygon (as it contains a lot of points) while rest of the group can contain 11 polygons.

Thanks

VAT

 

Hi @vat, I have added a workspace that groups based on created features and data.

Hope this helps.

grouping-on-average.fmw


Reply