[Qgis-developer] Python: Union selected polygons in a layer

Marco Bernasocchi marco at bernawebdesign.ch
Sun Oct 6 01:33:31 PDT 2013


Hi Andi in inasafe i do something similar [0]
Please be warned that it is in the "messyest" part of our code :)

Ciao

[0]
https://github.com/AIFDR/inasafe/blob/master/safe_qgis/impact_statistics/aggregator.py#L1046
Hi,

I am trying to union selected geometries in a layer into one geometry. A
multpolygon as a result would be fine if the selected polygons aren't
contiguous.

I did not find a union command in the API. How can I do this from Python?

Thanks a lot for any hints!

Andreas
_______________________________________________
Qgis-developer mailing list
Qgis-developer at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131006/0fc78ebf/attachment.html>


More information about the Qgis-developer mailing list