<div dir="ltr"><div>+1 for a processing scripts and models repository similar to that of the QGIS Plugins Repository.<br><br>Currently I simply have them available on GitHub<br></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Sun, Sep 15, 2013 at 2:57 PM, Ricardo Filipe Soares Garcia da <span dir="ltr"><<a href="mailto:ricardo.garcia.silva@gmail.com" target="_blank">ricardo.garcia.silva@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi Victor<br><br></div>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.<br>


<br></div>For this reason I'd like to bundle them together with the plugin.<br><br></div>I guess I can post them in the plugin's page and let users download them as needed.<br><br></div>In the future I'd like to make them available in this new platform for sharing QGIS related stuff.<br>


<br></div>Sounds reasonable?<br><br></div>Best regards<div><div class="h5"><br><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Sep 15, 2013 at 10:48 AM, Victor Olaya <span dir="ltr"><<a href="mailto:volayaf@gmail.com" target="_blank">volayaf@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ricardo<br>
<br>
There is a project going on now for creating a platform for sharing<br>
resources. in QGIS. Models are clearly a good item to share in there.<br>
<br>
I am lookng for example models to add to Processing so if you can send<br>
them to me I can add them in the "[example models] category. They will<br>
be useful for other people to study them and run them. I think this is<br>
the best way of distributing them. If the number of example models is<br>
high I might even classify them differently.<br>
<br>
Thanks!<br>
<br>
Victor<br>
<br>
<br>
2013/9/15 Ricardo Filipe Soares Garcia da <<a href="mailto:ricardo.garcia.silva@gmail.com" target="_blank">ricardo.garcia.silva@gmail.com</a>>:<br>
<div><div>> Sorry for the noise, but this message's title should say 'how to distribute<br>
> Processing models' instead of modules...<br>
><br>
><br>
> On Sun, Sep 15, 2013 at 2:39 AM, Ricardo Filipe Soares Garcia da<br>
> <<a href="mailto:ricardo.garcia.silva@gmail.com" target="_blank">ricardo.garcia.silva@gmail.com</a>> wrote:<br>
>><br>
>> Hi list<br>
>><br>
>> I am building a plugin for Processing (former Sextante). Besides the<br>
>> GeoAlgorithms,  I'd like to include some ready-made models along with the<br>
>> plugin.<br>
>><br>
>> Is this feasible? How to do it?<br>
>><br>
>> I am currently using a 'models' subdir under my plugin's code with the<br>
>> models.<br>
>><br>
>> It seems I should be able to register the models with processing's own<br>
>> ModelerAlgorithmProvider, but I am missing something<br>
>><br>
>> # python code<br>
>> alg = ModelerAlgorithm()<br>
>> alg.openModel('path_to_model_file')<br>
>> modeler_provider = Processing.modeler<br>
>> modeler_provider.algs.append(alg)<br>
>> Processing.updateProviders()<br>
>><br>
>> When running the above from the Python console I get no errors. But the<br>
>> Processing Toolbox does not show my models.<br>
>><br>
>> What am I missing?<br>
>><br>
>> Is there another way to do this? Is including models in plugins a nice way<br>
>> of distributing them? In this case it seems like a good thing, beacuse I<br>
>> want to provide some examples on how the plugin can be used.<br>
>><br>
>> Best regards<br>
>><br>
>> --<br>
>> ___________________________ ___ __<br>
>> Ricardo Garcia Silva<br>
><br>
><br>
><br>
><br>
> --<br>
> ___________________________ ___ __<br>
> Ricardo Garcia Silva<br>
><br>
</div></div>> _______________________________________________<br>
> Qgis-developer mailing list<br>
> <a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>___________________________ ___ __<br>Ricardo Garcia Silva
</div></div></div></div></div></div>
<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br></div>