Skip to main content
Solved

Extend the Statistics List by area_sum and write result to XML File


As a part of a study project, two different data sets are to be compared (official data and free data). The comparison is modeled successfully (see image below).

In addition, I would like to produce an overview that shows me which categories of a data set are in the wrong category of the other data set >> like a advanced Confusion Matrix.

For this I use currently the StatisticsCalculator, which gives me the name and the feature count of the "wrong" categories. I would like to expand this list attributes by the total amount of the area (sum(area_category[i]).

The result, a list with the contents .name, .count and .areaSum should be to output as XML file.

I do not get these two steps modeled without further help. Are there any suggestions?

 

Thanks in advance Greetings from Mainz (Germany)

Best answer by nathanatsafe

Hi @plassb, thanks for your question and for visiting us on live chat.

 

After our discussion, we came to the conclusion that the StatisticsCalculator was not giving the expected summed area per feature type, but rather a summed area per entire set of features. Using fme_feature_type in the 'Group By' parameter solved the problem, giving statistics calculated per feature type.

 

@plassb, please don't hesitate to follow up with some sample data and expected output if you run into problems when writing to XML.

 

Best,

 

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

3 replies

takashi
Influencer
  • May 23, 2018
It's hard to think of a solution unless you clarify how the StatisticsCalculator parameters are configured, what structure of the list is, and what desired destination XML schema is.

 


  • Author
  • May 23, 2018
I´ve solved the issue. Works perfectly with group by parameter.

 

Thanks to Nathan from FME!

 

 


nathanatsafe
Safer
Forum|alt.badge.img+7
  • Safer
  • Best Answer
  • May 23, 2018

Hi @plassb, thanks for your question and for visiting us on live chat.

 

After our discussion, we came to the conclusion that the StatisticsCalculator was not giving the expected summed area per feature type, but rather a summed area per entire set of features. Using fme_feature_type in the 'Group By' parameter solved the problem, giving statistics calculated per feature type.

 

@plassb, please don't hesitate to follow up with some sample data and expected output if you run into problems when writing to XML.

 

Best,

 

Nathan

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