This operation aggregates objects of a layer based on specified attributes. Objects with the same value for the specified attributes will be part of the same group. The output is a new layer that contains an object for each group identified in the input layer. The geometry of the group is the result of the spatial UNION of the geometries of the objects that where aggregated in that group. The attribute that was used to generate the groups and the number of objects that where aggregated are automatically generated as attributes of the group.
Optionally, the attributes of the aggregated objects in a group can be summarized using
statistical values and saved as attributes of the group. The following statistical summaries can be
selected:
Go to Vector Processing > Aggregation... to obtain the following interface:
The image bellow shows an example of the interface filled with some parameters.
The Aggregation result can be stored in different TerraLib datasources. Check data source selector for more details on how to select a data source.
The request for summarization statistics generates attributes for the groups. Its names are the input attribute name combined with the statistic parameter name. For example, suppose that the input data has an attribute called "population" that will be summarized by the parameter sum. The attribute of the group will be called "population_SUM". The output datasource is responsible for validating the groups attribute names, if they are not acceptable they might be modified. For example, in DBFs (part of Esri Shapefiles) attribute names can not be more than 10 characters long.
The option to use only selected objects from the Input layer is under development.