The LAS files are in different folders and unfortunately in each folder the Source ID is starting in 1, so in 100 folders I have 100 files with Source ID 1. I would like to keep all the other attributes but have an exclusive sequential number per each Sorce ID file.
Hi @aalves,
When you read in your LAS files there should be a las_file_source_id attribute that you can view in the Feature Information Window in the visual preview when you have the whole las file selected. If you are able to see it in the Feature Information Window, you can expose it in the AttributeExposer, so it could look something like this:
- AttributeExposer after the reader to expose las_file_source_id
- Counter transformer set to start at the number you want to count from, which will create a _count attribute for each las file that counts up from the number set
- AttributeManager - to set the value of the existing las_file_source_id to to the attribute _count that you created and then write that out
Hope that answers what you're looking for!
Hi @aalves,
When you read in your LAS files there should be a las_file_source_id attribute that you can view in the Feature Information Window in the visual preview when you have the whole las file selected. If you are able to see it in the Feature Information Window, you can expose it in the AttributeExposer, so it could look something like this:
- AttributeExposer after the reader to expose las_file_source_id
- Counter transformer set to start at the number you want to count from, which will create a _count attribute for each las file that counts up from the number set
- AttributeManager - to set the value of the existing las_file_source_id to to the attribute _count that you created and then write that out
Hope that answers what you're looking for!
Looks exactly what I was looking for. I am not sure if my FME skills will allow me to do it but I will give it a try.
Looks exactly what I was looking for. I am not sure if my FME skills will allow me to do it but I will give it a try.
@alexandreaalves, awesome, hope it goes smoothly for you! The screenshot cuts off the reader (LAS input) and writer (output), so you should be able to just add those transformers in between the reader and writer to get it working. You could start in FME Workbench by hitting Generate Workspace to get the reader and writer placed in the canvas for you.
We get that FME can be a bit of a learning curve so we've got some good free resources available like getting started with FME (articles/examples in the Knowledge Base), free training available online either live or recorded, as well as the FME Academy for more interactive module-based learning.