Skip to main content
Solved

Duplicate points and offsetting each duplicate

  • October 26, 2017
  • 1 reply
  • 98 views

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?

Best answer by redgeographics

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3704 replies
  • Best Answer
  • October 26, 2017

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