Skip to main content
Question

Adding Text along each vertex of linestring

  • April 30, 2013
  • 8 replies
  • 112 views

Forum|alt.badge.img
I would like to know if there is any option in FME to add text(height of the each vertex) along a linestring. The text should fall parallel to the line string.
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.

8 replies

david_r
Celebrity
  • April 30, 2013
Hi,

 

 

take a look at the Labeller, it will interpolate labels along linear features.

 

 

For more flexibility, also look at the new MapTextLabeller introduced in FME2013 (separate license needed).

 

 

David

fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • April 30, 2013
Hi,

 

 

I would chop the lines into points (chopper vertice nr =1) and use the labelpoint replacer specifying the label attribute, label height and label value (height of vertex).

 

Hope this helps

david_r
Celebrity
  • April 30, 2013
Your solution is quite good, Itay. I somehow missed the part about one label per vertex...

 

 

Here is a quick and dirty solution to also rotate the labels along the line:

 

 

Sample result:

 

 

Note that in the example above there is not logic as to whether a label will rotate to preceeding or succeeding segment.

 

 

David

takashi
Celebrity
  • May 1, 2013
Hi,

 

 

Although David has provided an excellent solution, since it's a very interesting subject I also challenged with another approach. Pardon me for jumping in. This solution has been inspired by the first David's suggestion (Labeller) and Itay's suggestion (Chopper).

 

 

Result:

 

 

 

Takashi

david_r
Celebrity
  • May 1, 2013
Elegant solution, Takashi!

 

 

Thanks for sharing.

 

 

David

Forum|alt.badge.img
  • Author
  • May 13, 2013

Thanks for all , for your help .

I created a fme tool using you

 

Added a aditional transformer for AttributeRounder for round of the attribute value.

 

 

Thanks for your help

Forum|alt.badge.img
  • Author
  • May 13, 2013
Hi all the following method worked in adding label along the linestring.

 


Forum|alt.badge.img
  • Author
  • May 13, 2013
Placing label along the line string worked, Thanks for all your help. I would like to add a snap showing . But dont know how to add.

 

Regards

 

Vijai