Tuesday, 18 December 2018

Using a plugin in QGIS modeler


I am working on a project where I want to automatize the workflow using the QGIS graphical modeler. The problem is that I want to use the Group Stats Plugin as a part of my model but can't integrate it as an algorithm in my modeler. Does anyone knows how can I use a plugin into the modeler ? Or is it even possible ?



Answer



Depends on the plugin.


Some plugins are designed to be integrated with the Processing Framework such as the GeoServer Explorer Plugin which contains several tools readily accessible from the Processing Toolbox and modeler.


However, I think currently most plugins do not possess this level of integration.




Use a custom script.



There have been a number of posts here asking how to access such plugins using Python (or the modeler):



Again, some plugins can be easily called using python scripts but others not so, you will need to examine the source code.


But if a plugin can be accessed easily, you could create a custom script in your modeler which would contain the code necessary to call the plugin.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...