Make "qgis:delaunaytriangulation" and "qgis:dissolve" save their outputs on a specifi
I'm new to python and QGIS. I'm working on modifying a plugin which runs algorithms "qgis:delaunaytriangulation" and "qgis:dissolve" like so
delone_triangles = processing.runalg("qgis:delaunaytriangulation", assistant_layer, None)['OUTPUT'] delaunay_layer = processing.getObject(delone_triangles)#some code laterdissolved = processing.runalg("qgis:dissolve", delaunay_layer, True, '', None)['OUTPUT']dissolved_layer = processing.getObject(dissolved)and from what I can gather what it does is it creates temporary files, saves the path to those files in both the delone_triangles and dissolved variables respectively and then uses that file to create the delaunay_layer and dissolved_layer objects. So with each iteration it essentially creates more unnecessary files. According to their documentation both of those algorithms have an output parameter, but I haven't been able to figure out how to properly use it and the documentation is not helpfulhttps://docs.qgis.org/2.6/en/docs/u...tor_geometry_tools/delaunaytriangulation.htmlhttps://docs.qgis.org/2.6/en/docs/u...tor_geometry_tools/delaunaytriangulation.html
What I wanna do is I wanna set up both the delaunay_layer layers before and then have those algorithms save their outputs onto those layers. Is that possible? How do I do that?
أكثر...
I'm new to python and QGIS. I'm working on modifying a plugin which runs algorithms "qgis:delaunaytriangulation" and "qgis:dissolve" like so
delone_triangles = processing.runalg("qgis:delaunaytriangulation", assistant_layer, None)['OUTPUT'] delaunay_layer = processing.getObject(delone_triangles)#some code laterdissolved = processing.runalg("qgis:dissolve", delaunay_layer, True, '', None)['OUTPUT']dissolved_layer = processing.getObject(dissolved)and from what I can gather what it does is it creates temporary files, saves the path to those files in both the delone_triangles and dissolved variables respectively and then uses that file to create the delaunay_layer and dissolved_layer objects. So with each iteration it essentially creates more unnecessary files. According to their documentation both of those algorithms have an output parameter, but I haven't been able to figure out how to properly use it and the documentation is not helpfulhttps://docs.qgis.org/2.6/en/docs/u...tor_geometry_tools/delaunaytriangulation.htmlhttps://docs.qgis.org/2.6/en/docs/u...tor_geometry_tools/delaunaytriangulation.html
What I wanna do is I wanna set up both the delaunay_layer layers before and then have those algorithms save their outputs onto those layers. Is that possible? How do I do that?
أكثر...