[Qgis-developer] how to distribute Processing modules?
Ricardo Filipe Soares Garcia da
ricardo.garcia.silva at gmail.com
Sun Sep 15 05:57:00 PDT 2013
In this case I don't think it is useful if you add the models to the
default install because they are all meant use this plugin's GeoAlgorithms
to do some composite analysis.
For this reason I'd like to bundle them together with the plugin.
I guess I can post them in the plugin's page and let users download them as
In the future I'd like to make them available in this new platform for
sharing QGIS related stuff.
On Sun, Sep 15, 2013 at 10:48 AM, Victor Olaya <volayaf at gmail.com> wrote:
> There is a project going on now for creating a platform for sharing
> resources. in QGIS. Models are clearly a good item to share in there.
> I am lookng for example models to add to Processing so if you can send
> them to me I can add them in the "[example models] category. They will
> be useful for other people to study them and run them. I think this is
> the best way of distributing them. If the number of example models is
> high I might even classify them differently.
> 2013/9/15 Ricardo Filipe Soares Garcia da <ricardo.garcia.silva at gmail.com
> > Sorry for the noise, but this message's title should say 'how to
> > Processing models' instead of modules...
> > On Sun, Sep 15, 2013 at 2:39 AM, Ricardo Filipe Soares Garcia da
> > <ricardo.garcia.silva at gmail.com> wrote:
> >> Hi list
> >> I am building a plugin for Processing (former Sextante). Besides the
> >> GeoAlgorithms, I'd like to include some ready-made models along with
> >> plugin.
> >> Is this feasible? How to do it?
> >> I am currently using a 'models' subdir under my plugin's code with the
> >> models.
> >> It seems I should be able to register the models with processing's own
> >> ModelerAlgorithmProvider, but I am missing something
> >> # python code
> >> alg = ModelerAlgorithm()
> >> alg.openModel('path_to_model_file')
> >> modeler_provider = Processing.modeler
> >> modeler_provider.algs.append(alg)
> >> Processing.updateProviders()
> >> When running the above from the Python console I get no errors. But the
> >> Processing Toolbox does not show my models.
> >> What am I missing?
> >> Is there another way to do this? Is including models in plugins a nice
> >> of distributing them? In this case it seems like a good thing, beacuse I
> >> want to provide some examples on how the plugin can be used.
> >> Best regards
> >> --
> >> ___________________________ ___ __
> >> Ricardo Garcia Silva
> > --
> > ___________________________ ___ __
> > Ricardo Garcia Silva
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-developer
___________________________ ___ __
Ricardo Garcia Silva
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Qgis-developer