Skip to main content
Question

How to I get the feature class name in output.


For Example:- I am trying to count no of features from multiple feature classes. output is just showing count, however output should be feature class name and then count. Any help is appreciated.

2 replies

oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • April 8, 2019

In the reader yo need to expose the attribute "fme_feature_type". That one contains the name of the class.


sipsysigh
Contributor
Forum|alt.badge.img+7
  • Contributor
  • April 8, 2019

Hi @dixitshreyashi,

As @oscard mentions you need to expose the attribute 'fme_feature_type' on the reader.

If you are after a feature count for each feature class you can use the StatisticsCalculator to do this. Set Group By to 'fme_feature_type' and Attributes to Analyze to 'fme_feature_type' and you're good to go. You can actually set Attributes to Analyze to use any feature attribute, you'll actually get the same result. See screengrab below for suggested settings:

 

Hope this helps.

 

Thanks,

Simon


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