I have a collection of geopackage files, several of which have different feature attribute schemas (attribute names, numbers of attributes).
I have read the schemas using a FeatureReader, and created a list for each FME_Feature_Type_Name. (I’ve built a concatenated text string here just for visibility):
Where I am getting stuck is in using this in a subsequent FeatureReader to define the attributes to expose for each file. I’m using fme_feature_type_name in the read location to grab one file at a time.
But am struggling to use the Schema list or concatenated attribute to drive the attribute exposure.
I can get all attributes exposed via AttributeExposer, but then I have to use a TestFilter and an AttributeManager to remove the attributes that don’t apply to particular files (because ‘expose all’ picks up all attributes from all files).
Is there any way this will work?