[Qgis-user] Polygons Dissolve

krishna Ayyala ayyalakrishna at gmail.com
Tue Jan 26 09:28:21 PST 2021


Charles,
Thanks for the reply. I tried to run the aggregate function with different
combinations. But it is always failing. For this kind of attribute table,
how do I run the aggregate function such that, the values in the Field1
column are aggregated corresponding to each polygonName?

[image: image.png]

On Tue, Jan 26, 2021 at 9:31 AM Charles Dixon-Paver <charles at kartoza.com>
wrote:

> Yes you can use the aggregate processing tool.
>
> You can use a variety of aggregation functions to get the required
> outputs, but the tool configuration may vary on input data.
>
> If the tool gives you errors, the usual culprit is data type errors. QGIS
> is very clever though, and you can use an expression to preprocess the
> field input, and if you specify the output field type it will try to cast
> it for you during processing.
>
> Example screenshot: https://imgur.com/a/vPohdLd
>
> In this example I take an input field and convert it to a string value,
> concatenate the inputs for all matching geometries into a single field, and
> outputs the value as an integer.
>
> Hope that helps.
>
> Regards
>
> On Tue, 26 Jan 2021 at 18:03, krishna Ayyala <ayyalakrishna at gmail.com>
> wrote:
>
>> I have a polygons shapefile as shown below.
>>
>> [image: image.png]
>>
>> Is it possible to dissolve these polygons and get a resultant shapefile
>> with an attribute table such as below?i.e. it should have only one
>> polygonName and all of its associated fields.
>>
>> PolygonName Field1 Field2
>> A 1 2
>> B 3 4
>> C 5 6
>> D 7 8
>> E 9 10
>> F 11 12
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210126/004c9d62/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 26223 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210126/004c9d62/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 30262 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210126/004c9d62/attachment-0003.png>


More information about the Qgis-user mailing list