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.


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

View original
Did this help you find an answer to your question?

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+33
  • 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
bwn wrote:

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
ebygomm wrote:

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!


Reply


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