Skip to main content

Folks,

I have a CAD output from a Mapinfo source. One of the challenges I'm facing is overlapping labels and blocks.

Some blocks are symbols representing co-located features.

My goal is to try and detect the duplicate label\\block placement points and perform some kind of offset to separate the objects.

In most(all) cases I'm using the CenterPointReplacer or LabelPointReplacer to determine the label\\block insertion point.

In some cases an ideal placement methode would be to detect the duplication and then alter the placement with a polar offset.

For example 4 co-located symbols would be placed as 0, 90,180,270 1m radius.

Are there any suggestions how I might be able to firstly detect the duplicates and work on the "duplicate sets" to calculate new polar coordinates?

The Offsetter can do polar coordinates, so if you know a sequence number per symbol (_element_index) and the total number of symbols (_numpoints) you can calculate the required angle like this:

(360/@Value(_numpoints))*(@Value(_element_index)+1)

rotate-points.fmw

Hope this helps


Reply