Skip to main content
Question

Source filename as output filename

  • February 6, 2013
  • 2 replies
  • 136 views

I have a textfile reader and a shapefile writer.

 

Is there a way I can extract the first part of the textfile name and use this as the shapefile name?

 

Thanks
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.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+62
You can use an AttributeExposer to make the fme_basename attribute visible, then use that for a Fanout attribute on the output feature type.

Hi PeteJnr,

 

 

if you want to extract some parts of the first part of your textfile name, you can use the SubstringExtractor on fme_basename and take the resulting attribute for fanout.

 

 

Best regards,

 

Stefan