Question

How to I get the feature class name in output.

  • 8 April 2019
  • 2 replies
  • 49 views

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

Userlevel 2
Badge +19

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

Badge

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

Reply