I am trying to add a new processing algorithm provider into QGIS 2.18. In the picture below there are GDAL/OGR, GRASS GIS, etc. I want to add a provider called My Provider.
So I read the doc here: https://docs.qgis.org/2.18/en/docs/pyqgis_developer_cookbook/processing.html and saw:
So I followed:
enter image description here enter image description here enter image description here
Then I reopened QGIS and installed the plugin, but no new provider appears. I read this thread: How to see the 'example provider' in processing toolbox of QGIS?. But this looks like this is for version 2.8, my exampleprovider is located in QGIS_2_18\apps\qgis\python\plugins\processing\algs\exampleprovider and I dont see which import is pointing to the wrong file.
What should I modify to make my provider appear in the processing toolbox?
-
1To clarify, are you wanting to add a new provider from your plugin?Joseph– Joseph2017年10月17日 15:19:48 +00:00Commented Oct 17, 2017 at 15:19
1 Answer 1
For create a custom processing provider into QGIS 2.18,all your steps is correct. When create a provider,this not show by default,for example.
I created this :
save it :
but the new empty algorithm not show :
you need activate your plugin :
and click in "enable additional provider" in the bottom.
In the new dialog you can show your new provider:
And click "activate" checkbox for show it.
And enjoy!
tested in QGIS 2.18