Skip to main content
Question

Script to update reader feature types

  • September 20, 2022
  • 2 replies
  • 28 views

I use a python script to set up project directories for specific tasks, The script also copies the workbenches and needed and uses some regex to adjust the paths in the fmw's. Sometimes the schema of the files changes, so I would like the readers to update feature types when opening FME without having to re-import them. I'd appreciate any shared experience and hopefully an example. Thanks!

2 replies

carmijo
Contributor
Forum|alt.badge.img+11
  • Contributor
  • September 22, 2022

Hi @bradosav​, could you use a feature reader and parameterize the feature types portion in the feature reader settings? Alternatively, you could read the data contents before the feature reader, and use a field to populate the feature types to read setting in the feature reader.


  • Author
  • October 20, 2022

Thanks @carmijo​ I will try that!


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