Solved

How can I calculate value of Attribute as shapefile name in FME?

  • 22 July 2021
  • 2 replies
  • 10 views

I have amount Shapefiles and I want calculate value of attribute as shapefile name. Who can help me? Thanks so much!

icon

Best answer by caracadrian 22 July 2021, 06:50

View original

2 replies

Badge +20

Your question is a bit ambiguous.

If you need the name of the file that you read you can expose fme_basename on the reader Format Attributes tab.

Reader fme_basenameIf you need to write your features to a controlled custom filename set Shapefile Name on the writer to an attribute or a concatenation of attributes via Text Editor.

Writer filename by attribute

Your question is a bit ambiguous.

If you need the name of the file that you read you can expose fme_basename on the reader Format Attributes tab.

Reader fme_basenameIf you need to write your features to a controlled custom filename set Shapefile Name on the writer to an attribute or a concatenation of attributes via Text Editor.

Writer filename by attribute

Thank for your support. I setup Format Attribute at Reader and Writer so It worked. 😁

Reply