Skip to main content
Question

Source filename as output filename

  • 6 February 2013
  • 2 replies
  • 59 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
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

Reply