Skip to main content

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.

 

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 

Reply