Skip to main content
Question

How to I get the feature class name in output.

  • April 8, 2019
  • 2 replies
  • 362 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.

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.

2 replies

oscard
Influencer
Forum|alt.badge.img+22
  • 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+12
  • 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