Skip to main content
Solved

How to get "Feature Read Summary" with FeatureReader ?


mhab
Contributor
Forum|alt.badge.img+10
  • Contributor

So I have replaced my FileGDB reader with 2 FeatureReaders (one for spatial, one for non-spatial data)

What I miss now is the "Feature Read Summary" I was used to get from the "real" reader.

Any way to get this summary ?

Best answer by mhab

So with the help of StatisticsCalculator, Counter and a TCLCaller I managed to create and write a "Feature Read Summary" of the FeatureReader data into the FME Log file in a way that our automatic statistic extraction works and produces results as it was for a "standard" reader :-))

EDIT: Custom Transformer available through FME Hub (FeatureReadSummary_to_log_writer.fmx)

Screenshot of log file with the generated statistics:

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

3 replies

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • June 25, 2018

Hi @mhab

I believe that you can use the transformer Statistic calculator to get the number of features after your Reader.

Thanks,

Danilo


david_r
Celebrity
  • June 26, 2018

This is a known limitation in FME 2017/2018, there's an idea for improvement here, please consider voting: https://knowledge.safe.com/idea/48251/include-featurewriter-counts-in-the-total-features.html

(Note that the idea concerns both the FeatureReader and the FeatureWriter)


mhab
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • Best Answer
  • June 29, 2018

So with the help of StatisticsCalculator, Counter and a TCLCaller I managed to create and write a "Feature Read Summary" of the FeatureReader data into the FME Log file in a way that our automatic statistic extraction works and produces results as it was for a "standard" reader :-))

EDIT: Custom Transformer available through FME Hub (FeatureReadSummary_to_log_writer.fmx)

Screenshot of log file with the generated statistics:


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