Skip to main content
Solved

Setting output file name for .xyz to las translation


Hello.  I have several hundred .xyz files that I want to translate to las/laz files.  Using a reader-writer (Point Cloud XYZ- LAS) does the job:  Inputs are something like 100903_120345.xyz, 100903_120736.xyz but the output files have names like POINTCLOUDXYZ.las, POINTCLOUDXYZ_1.las and so on

What I would like to happen is for the output files to inherit the base name of the input so that the outputs would be named 100903_120345.las, 100903_120736.las etc.

I'm very new to FME so apoligies for this simple question.

 

Thanks

 

Justin.

Best answer by davideagle

Hi Justin,

 

 

Once you have added your Writer, add an AttributeExposer to your input and expose the attribute fme_basename. This contains the name of the input file. On your Writer make sure that the target FeatureType (the brown thing on the Workbench canvas at the end of your workflow) has on the 'General' tab the 'Fanout by Attribute' parameter ticked on and then select fme_basename as the fanout attribute. Your output file names should now mirror your input and only contain the features from each source.

 

 

Hope that helps, Dave
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

3 replies

davideagle
Contributor
Forum|alt.badge.img+21
  • Contributor
  • Best Answer
  • January 9, 2013
Hi Justin,

 

 

Once you have added your Writer, add an AttributeExposer to your input and expose the attribute fme_basename. This contains the name of the input file. On your Writer make sure that the target FeatureType (the brown thing on the Workbench canvas at the end of your workflow) has on the 'General' tab the 'Fanout by Attribute' parameter ticked on and then select fme_basename as the fanout attribute. Your output file names should now mirror your input and only contain the features from each source.

 

 

Hope that helps, Dave

sigtill
Supporter
Forum|alt.badge.img+24
  • Supporter
  • January 9, 2013
Hi Justin,

 

 

More information regarding "fanout" on specific attributes can be found in this great article: http://fmepedia.safe.com/articles/How_To/Fanout

  • Author
  • January 9, 2013
Hi Dave,

 

Thanks for that that works a treat.

 

Regards

 

Justin.

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