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.
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.
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.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.