Skip to main content
Question

Test the type of attribute and test attribute value


mgeomaticien
Participant
Forum|alt.badge.img

Hi all,

I'm new on using FME, I have a question that troubles me

At first I would like to check the type of an attribute (text, number, ...). Then I would test if the values of an attribute belong to a list of attributes already predefined.

An idea please ?

thank you in advance,

5 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • May 9, 2017

itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • May 9, 2017

Hi @mgeomaticien,

To test the attribute type use the schema reader and for the value a attribute value mapper transformer can be used. Have a look at the transformers documentation on how the set invalid values so that you can afterwards easily test them.


mgeomaticien
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • May 11, 2017

Hi @jdh and @itay

Thank you for yours answers.

Please I have another question. I want to Check the presence of one or more layers (which I already know the names) and in each of the layers verifies the existence of one or more attributes (already known) when reading the data source.

I would also like to control the object type of each layer (polygon, point, line, text ...)

My data source is DWG file

Thank you in advance


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • May 11, 2017

You can use the fme_geometry attribute or GeometryFilter transformer to do that. JUst rememeber to expose the attribute.


mgeomaticien
Participant
Forum|alt.badge.img
  • Author
  • Participant
  • May 11, 2017
itay wrote:

You can use the fme_geometry attribute or GeometryFilter transformer to do that. JUst rememeber to expose the attribute.

Thank you. But before that I would like to check the existence of layers and attributes

 

 


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