Skip to main content
Solved

Remove fme format attributes from Generic Reader

  • September 28, 2012
  • 1 reply
  • 44 views

fmelizard
Safer
Forum|alt.badge.img+21
Generic Reader is outputting extra fme format attributes. Eg:

 

 mapinfo_symbol_color

 

 db_type

 

 jpeg_type

 

 csv_number_of_fields   I want to drop all these attributes leaving only the 'native' attributes but it is hard to do this with a text filter since the pattern varies depending on the input format.  Any ideas?   Unfortunately I can't just ignore them in the writer because I am writing the list of attributes to a string.      

Best answer by kathyross

You could try using the AttributeExpressionRemover. As you say though, that would involve alot of work and complexity.

 

 

Have you tried the SchemaReader reader to populate a list of attributes?

 

 

Alternatively, maybe even a custom python solution may be the way to go if you're up for it. I know that there is at least one fmepedia article that i've used to sort out a dynamic attribution solution in the past with Python.

 

 

Good luck.

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

Forum|alt.badge.img+4
  • Best Answer
  • October 2, 2012
You could try using the AttributeExpressionRemover. As you say though, that would involve alot of work and complexity.

 

 

Have you tried the SchemaReader reader to populate a list of attributes?

 

 

Alternatively, maybe even a custom python solution may be the way to go if you're up for it. I know that there is at least one fmepedia article that i've used to sort out a dynamic attribution solution in the past with Python.

 

 

Good luck.