重要

翻訳は あなたが参加できる コミュニティの取り組みです。このページは現在 36.36% 翻訳されています。

17.9. プロセシングログ

注釈

このレッスンではプロセシングログを説明します。

プロセシングフレームワークで実行されるすべての分析は、QGISのログシステムに記録されます。これによってプロセシングツールによって行われたことの詳細を知るとか、問題が発生したときにそれを解決することができます。またログシステムもいくつかの対話を実装しているので、以前の操作の再実行もできます。

To open the log, click on the balloon at the bottom right, on the QGIS status bar. Some algorithms might leave here information about their execution. For instance, those algorithms that call an external application usually log the console output of that application to this entry. If you have a look at it, you will see that the output of the SAGA algorithm that we just run (and that fails to execute because input data was not correct) is stored here.

これは、何が起こっているか理解するのに便利です。上級ユーザーは、その出力を分析して、アルゴリズムが失敗した理由を探せるでしょう。上級ユーザーでなければ、持っている問題を診断するのを他の人に助けてもらうために有用でしょう。外部のソフトウェアのインストール中の問題であるかもしれないし、提供されたデータの問題であるかもしれません。

アルゴリズムには、そのアルゴリズムが実行できたとしても結果が正しくないかもしれない場合に警告を残すものがあります。例えば、非常に少ない点で補間アルゴリズムを実行するとき、アルゴリズムは実行できて結果は作成されますが、より多くの点が使用されなければならないので、それは正しくない可能性が高いです。指定されたアルゴリズムのいくつかの側面に確信がない場合は、定期的に警告のこのタイプをチェックすることをお勧めします。

From the Processing ► History... menu, you'll find algorithms that are executed, regardless of they are executed from the GUI or from the console (which will be explained later in this manual). The execution is stored in this dialog as a console call. That means that everytime you run an algorithm, a console command is added to the log, and you have the full history of your working session. Here is how that history looks like:

../../../_images/history1.png

これはコンソールを使い始めるときに、アルゴリズムの構文を学ぶのに非常に便利です。コンソールから分析コマンドを実行する方法について説明するときにも使います。

17.9.1. ★☆☆ Follow Along

The history is also interactive, and you can run any previous algorithm just by double-clicking on its entry. This is an easy way of replicating the work we already did before.

For instance, try the following:

  1. Open the data corresponding to the first chapter of this manual and run the algorithm explained there.

  2. Now go to the log dialog and locate the last algorithm in the list, which corresponds to the algorithm you have just run.

  3. Double-click on it and a new result should be produced, just like when you run it using the normal dialog and calling it from the toolbox.

17.9.2. ★★★ (上級レベル) 上級

You can also modify the algorithm.

  1. Copy the algorithm call

  2. Open the Plugins ► Python console

  3. Paste your copy to run the analysis; change the text at will.

  4. To display the resulting file, type:

    iface.addVectorLayer('/path/filename.shp', 'Layer name in legend', 'ogr')
    

    Otherwise, you can use:

    processing.runAndloadResults