qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.61k stars 3.01k forks source link

Model does not show up in toolbox due to erroneous "Error in algorithm name" #18548

Closed qgib closed 5 years ago

qgib commented 10 years ago

Author Name: Thomas Horner (Thomas Horner) Original Redmine Issue: 10080 Affected QGIS version: 2.4.0 Redmine category:processing/core Assignee: Victor Olaya


I'm not sure why this happens or how to even replicate this. I have tried with the same models on different computers and the error is the same.

A number of models in a model chain all work currently and show up in the processing toolbox. However one model which references all the model does not show up in the toolbox because of an error.

Could not load model alptruth_final.model
Error in algorithm name: modeler:terraintraps

However the terraintraps.model model works fine and the alptruth_final.model itself can be opened up manually in the graphical modeler and runs successfully. It will just not show up in the toolbox. Changing the names of the models does not remove the error, nor does making a new model with similar algorithms and a different name and using that.

Can provide data set and models if needed.

qgib commented 10 years ago

Author Name: Thomas Horner (Thomas Horner)


The processing chain inside modeler:terraintraps is

modeler:denseforest -> gdalogr:roughness -> grass:r.mapcalculator

which runs perfectly fine.

qgib commented 10 years ago

Author Name: Thomas Horner (Thomas Horner)


This is getting ridiculous.

I cannot add any models. I cannot reference any models. Every model that I add that references any other model has a high chance of returning this error, no matter what the model names or file names are. Again, this has now made the graphical modeler almost entirely unusable. Yet everything works perfectly fine by itself. I have no idea why some models refuse to show up and return this error while others work fine.

qgib commented 10 years ago

Author Name: Thomas Horner (Thomas Horner)


It looks like this has something to do with the number of model hierarchies in each algorithm. For instance all of the ones failing to show up in the tool box have other SEXTANTE models inside of their model chain... and these SEXTANTE models have more SEXTANTE models inside the model chain. Models that only have one SEXTANTE model inside (that has no SEXTANTE models itself) show up in the toolbox okay.

qgib commented 10 years ago

Author Name: Victor Olaya (@volaya)


The modeler only support one level of nesting. A model with a model that itself contain another model will not work. That's a limitation of the modeler.

I will write it in the documentation, so it is documented.

Thanks for your help!


qgib commented 10 years ago

Author Name: Thomas Horner (Thomas Horner)


Okay. Will have to do a minor model redesign then. A note in the documentary would be great. Thank you.

qgib commented 10 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 10 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 9 years ago

Author Name: Giovanni Manghi (@gioman)