Skip to main content
Question

Creating an output dataset


fmesafe.podpora
Contributor
Forum|alt.badge.img+11

Hey. Hey. Could anyone advise how to write files to multiple datasets according to the number of sets defined by the number of flight tracks? The output dataset should contain the name of the ler route and some other attributes that are not relevant at the moment, however I need the number of datasets to match the number of flight routes ( ar_name attribute ). Currently I can only create one output dataset see attachment "current_dataset_routes_update_test". The attachment contains four flight paths in one dataset, namely Z410, L132, M725 and L602. The required output I would need is 4 x dataset Z410, L132, M725 and L602 see separate attachments with required_dataset + flight route name. I am also attaching a printscreen to give an idea of how to create the actual output dataset. The number of flight paths and the resulting dataset can of course vary, the process must be automated. Thank you very much. M.

 

6 replies

joepk
Influencer
Forum|alt.badge.img+20
  • Influencer
  • January 12, 2024

Hi there, could the FeatureWriter be of use to you? You can pass on the ar_name attribute as Feature Type Name.


nielsgerrits
VIP
Forum|alt.badge.img+52
joepk wrote:

Hi there, could the FeatureWriter be of use to you? You can pass on the ar_name attribute as Feature Type Name.

This. It is possible to use attributes in destination filenames in both the classic writers and featurewrites, but this is more intuitive to do in the featurewriter. When you want to do this in the classic writer, you need to find "fanout" in the navigation window. You will be able to concat a filename from attributes.


fmesafe.podpora
Contributor
Forum|alt.badge.img+11

Hey. Thanks for the reply. FeatureWriter seems like a good solution. I was able to create 4 groups (output datasets ), however, I still can't create four different dataset names that will dynamically change according to the ar_name. See attachments.

 

Thank you


fmesafe.podpora
Contributor
Forum|alt.badge.img+11

Settings FeatureWriter


fmesafe.podpora
Contributor
Forum|alt.badge.img+11

Hey.I managed to solve it using "fanout expression", however, I would still be interested in setting up FeatureWriter for future occasions. So if anyone would know, thank you in advance for the reply.


nielsgerrits
VIP
Forum|alt.badge.img+52
fmesafe.podpora wrote:

Hey.I managed to solve it using "fanout expression", however, I would still be interested in setting up FeatureWriter for future occasions. So if anyone would know, thank you in advance for the reply.

In the FeatureWriter you need to click on the arrow right from the field dataset, and use the text editor to concatenate the filename from the attributes. It is now not dynamic, but hard coded to test.txt


Reply


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