I have a set of approx 2000 rectangular polygons I need to offset where overlaps exist.
Approx 50 have overlaps as below.
I'm using a custom transformer written by somebody else in this forum to create
offset candidates. This has 2 numeric fields I can use to find the optimal offset
location i.e. distance and angle (closest to the right). These could be incremented
in a loop for e.g. until no overlaps exist. e.g try a counter clockwise loop of the closest
set and if overlaps still exist then try the same on the next closest set until a
non overlapping candidate is found.
I've had partial success however I am not sure how to design a workspace that
will offset 1 polygon at a time. i.e. it needs to select a candidate offset based on
min distance and min angle (closest to the right) then compare that to all other
polygons (no overlaps) then apply the offset.
Subsequent offsets would need to check for overlaps against existing 2000 polygons
but also against all those that have already been offset from original position.