Skip to main content
Solved

Select by attributes

  • Jan 13, 2014 12:32 PM UTC
  • 11 replies
  • 853 views

Forum|alt.badge.img
Hi,   Any alternates for Select by Attributes ??

Best answer by fmelizard

Hi,

 

 

You can use several transformers for that. The tester, testfilter and attributefilter are the most commonly used for this.

 

 

Itay

 

 

 

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.

11 replies

david_r
Celebrity
  • Jan 13, 2014 12:36 PM UTC
Hi,

 

 

could you be a bit more specific?

 

 

David

philippeb
Enthusiast
Forum|alt.badge.img+23
  • Enthusiast
  • Jan 13, 2014 2:54 PM UTC
Select by geometrie!

davideagle
Contributor
Forum|alt.badge.img+21
  • Contributor
  • Jan 13, 2014 3:40 PM UTC
Take a look at the Reader FeatureType and you'll see a 'Format Attributes' tab. You can expose some of these to select and filter your data as they will give you more to test like what colour (fme_color) or style (autocad_linestyle) is your data set to or what is the layer (fme_featuretype) or filename (fme_basename).

Forum|alt.badge.img
  • Author
  • Jan 13, 2014 5:15 PM UTC
I have a polygon file(.shp). I want the data from one column of the attribute table, and select only specific rows (falling in the same region).

 

 Suppose the column name is CITY and from that CITY column, I want to select only those rows having the city named as California.

fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • Best Answer
  • Jan 13, 2014 5:44 PM UTC
Hi,

 

 

You can use several transformers for that. The tester, testfilter and attributefilter are the most commonly used for this.

 

 

Itay

 

 

 


Forum|alt.badge.img
  • Author
  • Jan 14, 2014 4:40 AM UTC
Thank you everyone for the reply !!!

 

AttributeFilter was the transformer I was looking for.

 

Thanks

Forum|alt.badge.img
  • Author
  • Jan 14, 2014 4:44 AM UTC
But yes...AttributeFilter doesnot give option for "Get Unique Values" !!

takashi
Celebrity
  • Jan 14, 2014 7:20 AM UTC
Hi,

 

 

I'm not sure what is the actual requirement. Could you please post simplified data example, including input attribute values and expected result?

 

 

Takashi

fmelizard
Safer
Forum|alt.badge.img+22
  • Safer
  • Jan 14, 2014 7:26 AM UTC
It should since it scans your feature and returns the values found in an attribute. I agree with Takashi, it would be easier to answer if you formulate your question clearly and present some data.

david_r
Celebrity
  • Jan 14, 2014 7:55 AM UTC
Hi,

 

 

if you need a list of all the unique values for e.g. CITY, use the DuplicateRemover transformer.

 

 

That being said, it would be most helpful with more details about what you're trying to accomplish.

 

 

David

davideagle
Contributor
Forum|alt.badge.img+21
  • Contributor
  • Jan 14, 2014 10:06 AM UTC
You might try the UniqueValueLogger in the FMEStore, it will report all the unique values that your data has in a field to the Log window to help you understand how to test or filter your data in the best way.