Skip to main content
Question

Hi guys. I have created ca 40 000 annotations for a basemap im working on and some of the angled texts overlap. Is there a good way to displace them, like a "negative snapper"? thanks for all the help i can get!

  • November 6, 2020
  • 6 replies
  • 52 views

disco2000
Contributor
Forum|alt.badge.img+3
Hi guys. I have created ca 40 000 annotations for a basemap im working on and some of the angled texts overlap. Is there a good way to displace them, like a "negative snapper"? thanks for all the help i can get!
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.

6 replies

hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1625 replies
  • November 8, 2020

disco2000
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • 6 replies
  • November 9, 2020

I tried messing with the offsetter, but it doesn't seem to offset intuitively, and as far as I can deduce I would need to calculate overlapping distance and store offset distances as an attribute and loop until no overlap = 0. There must be a better way?


mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • November 9, 2020

There's actually a Displacer transformer that might do what you need. From the help doc:

 

"Solves proximity conflicts between features using a variant of the Nickerson displacement algorithm."


disco2000
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • 6 replies
  • November 9, 2020

Ah thats terrific!

Although It doesnt seem to honor the text-geometry...? A little background: Ive taken ca 40 000 points and passed them through a set of TextAdders and added some Fontsize-, rotation-, and colour attributes via AttributeCreater. The Displacer seems to treat my input features as points. I suspect I need to get rid of the piont geometry, but then I don't know where to add my labels?


hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1625 replies
  • November 9, 2020

Ah thats terrific!

Although It doesnt seem to honor the text-geometry...? A little background: Ive taken ca 40 000 points and passed them through a set of TextAdders and added some Fontsize-, rotation-, and colour attributes via AttributeCreater. The Displacer seems to treat my input features as points. I suspect I need to get rid of the piont geometry, but then I don't know where to add my labels?

you could try creating a bounding box around the text features and using those to input into the Displacer then (assuming you can calcualte the transformation/translation) apply that to the text


Forum|alt.badge.img+2
  • 1891 replies
  • November 9, 2020

@disco2000​ The MapTextLabeller is designed to do just this - although it is an extra cost plugin.