[QGIS-Developer] multipartToSingleParts via code

Nyall Dawson nyall.dawson at gmail.com
Tue Jun 13 01:20:31 PDT 2017


On 13 June 2017 at 17:49, Stefano Masera
<stefano.masera at arpa.piemonte.it> wrote:
> Hi Nyali,
> in a few words I want to do a multipartToSingleParts (for a VectorLayer) via
> code without using the processing module.

Any particular reason why?

In any case, I'd suggest copying the code used by processing:
https://github.com/qgis/QGIS/blob/release-2_18/python/plugins/processing/algs/qgis/MultipartToSingleparts.py#L66

Nyall


More information about the QGIS-Developer mailing list