Skip to main content
Question

Dynamic Reader and Writer - FME 2024

  • March 7, 2025
  • 1 reply
  • 18 views

jeddoub
Participant
Forum|alt.badge.img+1

Hi FME Community,

I have a folder containing 100 CityJSON files, each with three main features: Building, BuildingPart, and Metadata.

I need my files to be dynamically processed by transformers to create new attributes and then output the modified CityJSON files into a new folder while keeping the original filenames.

Do you have any tips on how to achieve this?

Best regards,
Imane

PS: I tried using the reader to specify the folder path, but it doesn’t seem to be working perfectly.

 

1 reply

evieatsafe
Safer
  • Safer
  • March 10, 2025

Hi ​@jeddoub great question! I’ll try to provide some general tips, but if you want more specific advice based on your use case could you provide your current workspace and some sample CityJSON? As well as the attributes you’re interested in working with and what ones you’re looking to add. 
 

  • I would use a FeatureReader instead of a reader for additional functionality in dynamic reading. 
  • Using a ShemaScanner after adding any attributes before writing will give you that dynamic writing capability 
  • In the writer, I would make sure it is set to dynamic and your schema is from the schema feature from the SchemaScanner 

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