Skip to main content
Solved

Remove fme format attributes from Generic Reader

  • September 28, 2012
  • 1 reply
  • 29 views

fmelizard
Contributor
Forum|alt.badge.img+17
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
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings