Skip to main content

Hi all

I have been tasked to try to autogenerate 4 districts based on the values of a number of points that fall within a polygon boundary.

Basically I have to split a polygon into 4 parts where the sum of a number value of the point dataset is a close to equal as possible.

I cant upload the real data as it is sensitive but I have created a polygon dataset and a point dataset

500 random points inside a box polygon. The points all have an attribute called "value" that is also a random number.

Does anyone have an idea for a workspace that can split the polygon in the box shape file into 4 coherent parts where the sum of the points falling withing the split polygons are approximately equal?

Best Regards Morten

I'd take a look at the point clusterer custom transformer to create groupings, then once your points are grouped create polygons around these points