Skip to main content
Solved

Changing some specific letters in Attributes

  • June 10, 2021
  • 1 reply
  • 21 views

Hey, this is my first time I´m asking something because I always found solutions throughout the FME-Community. This time I couldn´t find a post, where somebody had the same problem as I have right now.

 

I have a shapefile including points with names. These names are just written in small caps. For example I have one point named "vierge du ballon" and I want to rename it to "Vierge du Ballon". Is this possible? I have 211 points where I need to change specific parts of the name (see the screenshot below!). I know there is a StringCaseChanger, but this one only changes Fullt Title Case...

 

Just for understanding, there are some more examples (see screen):

1) I have "vierge d'alsace" and want to change it to "Vierge d'Alsace

2) I have "tombe de l'ermite" and want to change it to "Tombe de L'ermite"

 

Would be so great if somebody know how to change it! :)

Best answer by ebygomm

What are your rules for not changing? Without knowing the rules it is hard to advise, but if for example du, de and d' would always remain lowercase I would use a StringCaseChanger to change to Full Title Case, and then a StringPairReplace to change Du back to du, De back to de etc.

 

Capture

View original
Did this help you find an answer to your question?

1 reply

ebygomm
Influencer
Forum|alt.badge.img+33
  • Influencer
  • Best Answer
  • June 10, 2021

What are your rules for not changing? Without knowing the rules it is hard to advise, but if for example du, de and d' would always remain lowercase I would use a StringCaseChanger to change to Full Title Case, and then a StringPairReplace to change Du back to du, De back to de etc.

 

Capture


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