[Qgis-developer] [Processing] access output layer as QgsVectorLayer object

Bernhard Ströbl bernhard.stroebl at jena.de
Tue Mar 15 08:52:03 PDT 2016


I am currently rewriting a processing alg. What I need is
- either a temporary layer (I could do that with QGIS Python api but 
wondered if there is a helper function for that)
- or (prefered) get the layer created by output (and modify it further) 
I cannot access it, this is my code:
output = self.getOutputFromName(self.OUTPUT)
writer = output.getVectorWriter(provider.fields(),
     provider.geometryType(), inLayer.crs())
output.layer and writer.layer are both None

any help appreciated


__________ Information from ESET Mail Security, version of virus signature database 13181 (20160315) __________

The message was checked by ESET Mail Security.

More information about the Qgis-developer mailing list