Skip to main content
Question

offset optimally untill no overlaps


Forum|alt.badge.img

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.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+50

I'm all for the use of FME of course but... if this is a one-time action and it's "only" 50 out of 2000 you may want to consider just using FME to detect the offsets and then have a human operator move them around manually. It might be quicker to do that than to develop a workspace to do it.


Forum|alt.badge.img
  • Author
  • October 29, 2018
redgeographics wrote:

I'm all for the use of FME of course but... if this is a one-time action and it's "only" 50 out of 2000 you may want to consider just using FME to detect the offsets and then have a human operator move them around manually. It might be quicker to do that than to develop a workspace to do it.

This is something that needs to be automated i.e. the points that the boxes are derived from change.

 

 


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