I created a QGIS standalone script (custom Application) that enables me to automatically export Atlas as images.
The problem is that in my QGIS project, I'm using a Mask plugin and the generated images don't take into consideration this plugin (even if I install it on /usr/share/qgis/python/plugins
) when executing my script in a standalone way whereas when I manually export Atlas as images using QGIS desktop and the same project, the plugin is activated and the mask is done correctly in the generated images.
I also tried to use the API sys.path.append('/usr/share/qgis/python/plugins')
just after the qgs.initQgis()
and also QgsApplication.setPrefixPath("/usr/lib/qgis", True)
(tested also with /usr/share/qgis
andn /usr
folder) before the QgsApplication([], True)
without more success.
Is there a specific API to use when executing standalone scripts so that QGIS engine enables layers plugins?
I also created an issue on the Mask plugin project in case.
No comments:
Post a Comment