Skip to main content
Question

Is there a way to abbreviate words within a field?

  • September 15, 2023
  • 2 replies
  • 17 views

pearly1
Contributor
Forum|alt.badge.img+5

imageimageHi,

New to FME and creating a workbench converting CAD to GIS. I am trying to get the structure fields to match and eventually join them after more clean up. Id like the structures field to be abbreviated. I was thinking Attribute manager could do this. but when I use conditional formatting I loose the "-#". another thought would be to add an alias? but again I am not too sure of a solution.

 

Thanks!

2 replies

raymondbrunner
Contributor
Forum|alt.badge.img+11
  • Contributor
  • 14 replies
  • September 15, 2023

Have you considered the StringReplacer?

 

I would replace the occurrence of "Curb Inlet " (with a space included) into "CI-"

 

imageThis would leave the second record without a number suffix unchanged.

image


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • September 18, 2023

Have you considered the StringReplacer?

 

I would replace the occurrence of "Curb Inlet " (with a space included) into "CI-"

 

imageThis would leave the second record without a number suffix unchanged.

image

And as an addition: the StringPairReplacer will let you specify multiple replacement pairs.