mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Warn on running deprecated algorithms or algorithms with known issues from qgis_process
This commit is contained in:
parent
687398415b
commit
04e07f07d0
@ -459,6 +459,20 @@ int QgsProcessingExec::execute( const QString &id, const QVariantMap ¶ms, co
|
||||
std::cerr << QStringLiteral( "The \"%1\" algorithm is not available for use outside of the QGIS desktop application\n" ).arg( id ).toLocal8Bit().constData();
|
||||
return 1;
|
||||
}
|
||||
|
||||
if ( alg->flags() & QgsProcessingAlgorithm::FlagKnownIssues )
|
||||
{
|
||||
std::cout << "\n****************\n";
|
||||
std::cout << "Warning: this algorithm contains known issues and the results may be unreliable!\n";
|
||||
std::cout << "****************\n\n";
|
||||
}
|
||||
|
||||
if ( alg->flags() & QgsProcessingAlgorithm::FlagDeprecated )
|
||||
{
|
||||
std::cout << "\n****************\n";
|
||||
std::cout << "Warning: this algorithm is deprecated and may be removed in a future QGIS version!\n";
|
||||
std::cout << "****************\n\n";
|
||||
}
|
||||
}
|
||||
|
||||
std::cout << "\n----------------\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user