Home
 

Aggregation procedure

Inputs 1 Map and 1 Continuous data
Output Continuous data

Display:

Description:
The purpose of this module is to enable data aggregation at a higher geographical level.

For example, if the inputs are:

  • Map of France by regions,
  • Data of unemployment per department (connected to a map of France by departments),

aggregation is done by grouping the departments included in each geographical region. Depending on the type of calculation selected, the module supplies either the sum of the values, their average, or the number of departments included.

The data supplied at the output can be associated with the regions of France.

Example:
We have the following data for departments:

Eure et Loir : 25
Loiret : 30
Loir et Cher : 20
Indre et Loire : 10
Indre : 20
Cher : 15

This gives the following aggregate value for the Centre region:

  • Sum total:  25+30+20+10+20+15 = 120
  • Average:  120/6 = 20
  • or Count (Number of elements:  6

ATTENTION : if the zones to agregate are across two regions, then the calculation will be wrong.

Script:

2      module untyped_list ""
3        mod_type integer "103"
3        mod_subtype integer "517"
3        mod_name string "Agrégation"
3        mod_dads integer_list ""
4          ? integer "7"
4          ? integer "4"
3        agreg_type integer "0"

Values for agreg_type :
Sum total           0
Average             1
Number of entities  2


Samples