I am using FME to write all the MapInfo TAB files in a directory and it's subdirectories to a File Geodatabase. I'm using dynamic readers and dynamic writers as I don't know the geometry or schema of the input files beforehand. So far so good. Now, suppose that I have a file called
"Pipeline.TAB"
at the root of the directory and I have another file called "Pipeline.TAB"
in a subdirectory. No problem. FME can merge the two files together and I get the geometry from both files in my new feature class called "Pipline_line"
. My issue is, suppose those two original files have different attributes. Say, the file in the root folder has a field called "Name" and the second file has a field called
"Pipe_Name"
. My resulting feature class gets the "Name"
field but not the "Pipe_Name"
field. The features that came from the file in the subdirectory have a NULL value in the "Name"
field. Instead, what I would like is to have both fields come through. I'm happy if the "Name"
field is NULL as long as the "Pipe_Name"
field is there and has the correct values. It appears that the schema is determined by the first feature that is being read, whereas, I need it to use the schema from all of the features with the same name. Is this possible?