Skip to main content
Solved

I'm looking to summarize similar feature classes contained in an ESRI File Geodatabase. I am simply looking to write out counts of features appearing to excel and possibly summarize these. I have tried using the attribute pivoter with no luck.

  • November 5, 2020
  • 4 replies
  • 41 views

Forum|alt.badge.img+1

In FME, I have a File Geodatabase Reader (merged feature type). I would like FME to group features by fme_feature_type and output each feature type to a port.

 

 

 

I have gotten close with the attribute pivoter, but haven't had any luck writing counts. 

 

 

 

Does anyone have any suggestions?

 

What I'd Like to accomplish:

Untitled 

Almost got it with attribute pivoter:

Screenshot 2020-11-03 131729My settings for attribute pivoter:

Screenshot 2020-11-03 131748 

 

Thank You

Best answer by ebygomm

Statistics calculator for stats

Read all feature classes and expose fme_feature_type

Statistics calculator with group by on fme_feature_type

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.

4 replies

bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • November 5, 2020

A generalised approach is:

1. Dynamically read all Feature Classes to a single Generic Output Port, and expose fme_feature_type

2. Send the output of this to Counter: Set Counter Name to @Value(fme_feature_type). This will count how many features are in each feature class

3. Send the output of this to Sampler. Group By: fme_feature_type. Set Sampler to read the last 1 feature . This will output 1 feature per feature class, with the Counter Attribute on this Feature being the Total Count of the features in the feature class

 

FME kinda takes some mental adjustment in that sometimes our old SQL, Grouping/Pivot methods are sometimes unnecessary for getting Stats!


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • November 5, 2020

Statistics calculator for stats

Read all feature classes and expose fme_feature_type

Statistics calculator with group by on fme_feature_type


Forum|alt.badge.img+1
  • Author
  • November 29, 2020

A generalised approach is:

1. Dynamically read all Feature Classes to a single Generic Output Port, and expose fme_feature_type

2. Send the output of this to Counter: Set Counter Name to @Value(fme_feature_type). This will count how many features are in each feature class

3. Send the output of this to Sampler. Group By: fme_feature_type. Set Sampler to read the last 1 feature . This will output 1 feature per feature class, with the Counter Attribute on this Feature being the Total Count of the features in the feature class

 

FME kinda takes some mental adjustment in that sometimes our old SQL, Grouping/Pivot methods are sometimes unnecessary for getting Stats!

This worked great. Thank you!


Forum|alt.badge.img+1
  • Author
  • November 29, 2020

Statistics calculator for stats

Read all feature classes and expose fme_feature_type

Statistics calculator with group by on fme_feature_type

Awesome. Just what I needed and super simple to use. Thank You!