중요

번역은 여러분이 참여할 수 있는 커뮤니티 활동입니다. 이 페이지는 현재 23.81% 에서 번역되고 있습니다.

17.9. 공간 처리 로그

참고

이 강의에서 공간처리 로그에 대해 설명합니다.

All the analysis performed with the processing framework is logged in QGIS logging system. This allows you to know more about what has been done with the processing tools, to solve problems when they happen, and also to re–run previous operations, since the logging system also implements some interactivity.

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.

작업이 어떻게 진행되고 있는지 이해하는 데 큰 도움이 됩니다. 고급 사용자는 이 산출물을 분석해서 어째서 알고리듬이 실패했는지 알아낼 수 있을 것입니다. 고급 사용자가 아닐 경우, 다른 이들이 이 산출물을 가지고 어떤 문제인지, 외부 응용 프로그램의 설치에 문제가 있는지 또는 사용자가 제공한 데이터에 문제가 있는지 진단해줄 수 있을 것입니다.

Even if the algorithm could be executed, some algorithms might leave warnings in case the result might not be right. For instance, when executing an interpolation algorithm with a very small amount of points, the algorithm can run and will produce a result, but it is likely that it will not be correct, since more points should be used. It’s a good idea to regularly check for this type of warnings if you are not sure about some aspect of a given algorithm.

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 History 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. ★★☆ Follow Along

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 parameters at will.

  4. To display the resulting file, you may want to replace processing.run in the pasted command with processing.runAndLoadResults.