This operation dissolves 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 each group is the result of the spatial UNION of all objects geometry dissolved to that group.
The attributes of each group are composed at least by all attributes used to dissolve, an ID, and a new one called NUM_OBJ to register the number of objects used to generate the group. Besides that, some attributes can be chosen to be summarized using the following statistical parameter:
It is accessed through:
Processing > Vector
Processing
> Dissolve...
The Dissolve result can be stored in different TerraLib data sources. 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 used. For example, suppose that the input data has an attribute called population that will be summarized by the parameter sum. In this case the attribute of the group will be called population_SUM.
The output data source is also responsible for validating the attribute names in each group. 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, then in the example above the attribute name would be populac_S instead of population_SUM.
The attributes used to perform the dissolve can generate only one attribute column called AGG_PROP or as much as the attributes involved, depending on the input layer source.
As an example suppose the dissolve applied in a shape file using the following attributes: CODUF, NOMEUF, SIGLAUF, CODMESO, NOMEMESO, and using the statistical parameter SUM over POPULACA, POPHOMEN, POPMULHE. The input data is showed bellow:
The resulting table associated with the dissolve is:
Note that the AGG_PROP attribute is a concatenation of the values separated by "_" , the NUM_OBJ contains the number of objects dissolved, and the name of summarized attributes (POPULA_S) changed a bit because of the way OGR treat names greater than 10 characters.
If the dissolve above is applied in a PostGIS layer the resulting table is:
Note that beside NUM_OBJ, exists an attribute for each one used to dissolve (5) and an attribute for each one used to summarize data (3).