重要
翻訳は あなたが参加できる コミュニティの取り組みです。このページは現在 60.00% 翻訳されています。
17.13. HTML出力
注釈
このレッスンでは、QGISは、テキスト出力とグラフを生成するために使用されているHTML形式の出力を、どのように処理するかを学びます。
All the outputs we have produced so far were layers (whether raster or vector). However, some algorithms generate outputs in the form of text and graphics. All this outputs are wrapped in HTML files and displayed in the so--called Results viewer, which is another element of the processing framework.
どのように機能するかを理解するため、これらのアルゴリズムの1つを見てみましょう。
Open the project with the data to be used in this lesson and then open the Basic statistics for fields algorithm.
アルゴリズムはかなり単純で、使用するレイヤーおよびそのフィールド(数値フィールド)の1つを選択する必要があるだけです。出力のタイプはHTMLですが、対応するボックスは正確にラスターまたはベクター出力の場合に見つけることができるもののように動作します。ファイルパスを入力できますし、一時ファイルに保存する場合は空白のままにもできます。この場合はしかし、 html と htm 拡張子だけが許可されているので、別の拡張子を使用して出力形式を変更する方法はありません。
Run the algorithm selecting the only layer in the project as input, and
the POP2000 field, and a new dialog like the one shown next will appear
once the algorithm is executed and the parameters dialog is closed.
This is the Results viewer. It keeps all the HTML result generated during the current session, easily accessible, so you can check them quickly whenever you need it. As it happens with layers, if you have saved the output to a temporary file, it will be deleted once you close QGIS. If you have saved to a non-temporary path, the file will remain, but it will not appear in the Results viewer the next time you open QGIS.
いくつかのアルゴリズムは、他のより詳細な出力に分けることができないテキストを生成します。例えば、アルゴリズムで外部プロセスからのテキスト出力を取り込む場合がそうです。他の場合には、出力はテキストとして提示されますが、内部的には通常は数値の形で、いくつかの小さな出力に分割されます。私たちが実行したアルゴリズムはそのうちの一つです。これらの値の各々は、単一の出力として扱われ、変数に格納されます。これは今はまったく重要性を持ちませんが、モデルデザイナーに移ったときに、これらの値が他のアルゴリズムの数値入力として使用できるようになっていることがわかるでしょう。