Skip to main content
Solved

Remove fme format attributes from Generic Reader

  • Sep 28, 2012 4:19 PM UTC
  • 1 reply
  • 118 views

fmelizard
Safer
Forum|alt.badge.img+22
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.

 

View original
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

kathyross
Participant
Forum|alt.badge.img+9
  • Participant
  • Best Answer
  • Oct 2, 2012 2:22 AM UTC
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.