The print composer provides growing layout and printing capabilities. It allows you to add elements such as the QGIS map canvas, legend, scalebar, images, basic shapes, arrows and text labels. You can size, group, align and position each element and adjust the properties to create your layout. The layout can be printed or exported to image formats, Postscript, PDF or to SVG (export to SVG is not working properly with some recent Qt4 versions. You should try and check individual on your system). You can save the layout as template and load it again in another session. See a list of tools in table_composer_1:
Table Composer 1: プリントコンポーザツール
すべてのプリントコンポーザツールはメニューから利用でき,かつツールバーのアイコンから利用できます.ツールバーはマウスがツールバーの上にあるときにマウス右ボタンで表示と非表示を切り替えできます.
プリントコンポーザで作業を開始する前にいくつかのラスタまたはベクタレイヤをQGISマップキャンバスにロードして必要に応じてプロパティを設定しておく必要があります. すべての描画と描画設定が終わったらツールバーの New Print Composer アイコンをクリックするかメニューの File ‣ New Print Composer を選択して下さい.
プリントコンポーザーを開くと、現在のQGISマップキャンバス、凡例、スケールバー、画像、基本図形、矢印とテキストが追加できる空白のキャンバスを提供します。Figure_composer_1 は、 :guilabel:`グリッドにスナップ`モードですが要素が追加される前のプリントコンポーザーの初期ビューを示します。
Figure Composer 1:
プリントコンポーザには3個のタブがあります
You can add multiple elements to the composer. It is also possible to have more than one map view or legend or scalebar in the print composer canvas. Each element has its own properties and in the case of the map, its own extent. If you want to remove any elements from the composer canvas you can do that with the Delete or the Backspace key.
Click on the Add new map toolbar button in the print
composer toolbar, to add the QGIS map canvas. Now drag a rectangle on the composer
canvas with the left mouse button to add the map. To display the current map, you
can choose between three different modes in the map Item Properties
tab:
キャッシュ が新規にプリントコンポーザに地図が追加された時のデフォルトプレビューモードです。
You can resize the map element by clicking on the
Select/Move item button, selecting the element, and dragging one of the
blue handles in the corner of the map. With the map selected, you can now adapt
more properties in the map Item Properties tab.
To move layers within the map element select the map element, click the
Move item content icon and move the layers within
the map element frame with the left mouse button. After you found the right place
for an element, you can lock the element position within the print composer
canvas. Select the map element and click on the right mouse button to
Lock the element position and again to unlock the element. You can lock
the map element also activating the
Lock layers for map
item checkbox in the Map dialog of the Item Properties
tab.
ノート
QGIS is now able to show labels from the new labeling plugin also in the map composer, but it is not yet scaled correctly. So it might be necessary to switch back to the standard labeling in some cases.
地図ダイアログ
The Map dialog of the map Item Properies tab provides following functionalities (see figure_composer_2):
Figure Composer 2:
QGISマップキャンバスにあるビューを拡大縮小やスクロール、ベクタやラスタのプロパティ変更等を行った時に更新したい場合はプリントコンポーザビューで更新したい地図エレメントを選択した後に [プレビュー更新] ボタンをクリックして下さい。
領域ダイアログ
The Extents dialog of the map item tab provides following functionalities (see Figure figure_composer_3)):
Figure Composer 3:
If you change the view on the QGIS map canvas by zooming or panning or changing vector or raster properties, you can update the print composer view selecting the map element in the print composer and clicking the [Update preview] button in the map Item Properties tab (see Figure figure_composer_2 a)).
グリッドダイアログ
The Grid dialog of the map Item Properties tab provides following functionalities (see Figure_composer_4):
Figure Composer 4:
グリッドを表示しますか チェックボックスでは地図エレメントにオーバーレイするグリッドを有効にします。グリッドタイプとしてソリッドラインと十字を選択できます。 その上XとY方向の間隔、XとYのオフセット、幅の十字またはライングリッドタイプについて指定できます。
注記を描画する チェックボックスでは地図フレームに座標を追加できます。注記は地図フレームの内側または外側に描画できます。注記の描画方向は水平、垂直、水平と垂直、または外枠の方向が指定できます。 またグリッドの色、注記のフォント、地図フレームから注記への距離、描画する座標の精度を指定できます。
一般情報 オプション ダイアログ
The General options dialog of the map Item Properties tab provides following functionalities (see Figure_composer_5):
Figure Composer 5:
プリントコンポーザにカレントQGISマップキャンバスを追加することに加えて凡例、スケールバー、イメージ、ラベルエレメントについて追加、位置の設定、移動、カスタマイズが可能です。
To add a label, click the Add label icon, place the element
with the left mouse button on the print composer canvas and position and customize
their appearance in the label Item Properties tab.
ラベルダイアログ
The Label dialog of the label item tab provides following functionalities:
Figure Composer 6:
一般情報 オプション ダイアログ
The General options dialog of the label Item Properties tab provides following functionalities:
Figure Composer 7:
To add an image, click the Add image icon, place
the element with the left mouse button on the print composer canvas and position
and customize their appearance in the image Item Properties tab.
ピクチャオプションダイアログ
The Picture options dialog of the image Item Properties tab provides following functionalities (see figure_composer_5 a):
Figure Composer 8:
**ディレクトリ検索**エリアでは、ピクチャデータベースのSVGフォーマットのイメージのディレクトリを追加したり削除することができます。
一般情報 オプション ダイアログ
The General options dialog of the image Item Properties tab provides following functionalities:
Figure Composer 9:
To add a map legend, click the Add new legend icon,
place the element with the left mouse button on the print composer canvas and
position and customize their appearance in the legend Item Properties
tab.
一般情報 ダイアログ
The General dialog of the legend item tab provides following functionalities (see figure_composer_10):
Figure Composer 10:
凡例アイテムダイアログ
The Legend items dialog of the legend Item Properties tab provides following functionalities (see figure_composer_11):
Figure Composer 11:
一般情報 オプション ダイアログ
The General options dialog of the legend Item Properties tab provides following functionalities (see figure_composer_12):
Figure Composer 12:
To add a scalebar, click the Add new scalebar icon, place
the element with the left mouse button on the print composer canvas and position
and customize their appearance in the scalebar Item Properties tab.
スケールバーダイアログ
The Scalebar dialog of the scalebar Item Properties tab provides following functionalities (see figure_composer_13):
Figure Composer 13:
スケールバーのスタイルを指定できます。スタイルとしてはシングルとダブルボックス、ライン目盛を真ん中、上、下に置くかと数字のスタイルの指定ができます。
一般情報 オプション ダイアログ
The General options dialog of the scalebar Item Properties tab provides following features (see figure_composer_7 b)):
Figure Composer 14:
レイアウト処理中に、変更の取り消しと再実行することが可能である。これは、取り消しと再実行ツールで行うことができます:
あるいは :guilabel:`コマンドヒストリ`タブでマウスクリックします (figure_composer_9 を参照)。
Figure Composer 16:
プリントコンポーザキャンパスに基本図形 (楕円, 四角形, 三角形)と矢印を追加できます。
The Shape dialog allows to draw an ellipse, rectangle, or triangle in the print composer canvas. You can define its outline and fill color, the outline width and a clockwise rotation.
Figure Composer 18:
The Arrow dialog allows to draw an arrow in the print composer canvas. You can define color, outline and arrow width and it is possible to use a default marker and no marker and a SVG marker. For the SVG marker you can additionally add a SVG start and end marker from a directory on your computer.
Figure Composer 19:
ベクタ属性値のテーブルをプリントコンポーザキャンバスに追加することができます。
テーブルダイアログ
The Table dialog of the attribute table item tab provides following functionalities (see figure_composer_20):
Figure Composer 20:
最大表示行数を指定することができます。また現在のコンポーザキャンパスに表示されている地物の属性のみを表示するように指定できます。
さらにテーブルとヘッダと内容のフォントのようなグリッドの性質を指定することができます。
一般情報 オプション ダイアログ
The General options dialog of the attribute table item tab provides following functionalities (see figure_composer_21):
Figure Composer 21:
エレメントの前面移動または背面移動機能は :sup:`選択したアイテムを上へ`プルダウンメニューの中にあります。プリントコンポーザキャンバス内のエレメントを選択して、選択したエレメントと他のエレメントの位置関係を比較して前面移動または背面移動の機能を選択してください ( table_composer_1 を参照)。
There are several alignment functionalities available within the
Align selected items pulldown menu (see table_composer_1). To use an
alignment functionality , you first select some elements and then click on the
matching alignment icon. All selected will then be aligned within to their common
bounding box.
Figure_composer_22 shows the print composer with an example print layout including each type of map element described in the sections above.
Figure Composer 22:
プリントコンポーザでは多彩な種類の出力形式を利用でき、それぞれの解像度(印刷品質)と紙のサイズを指定できます:
印刷 アイコンを使うと接続されたプリンタかインストールされているプリンタドライバに依存したPostscriptファイルを出力し、レイアウトを印刷することができます。
:sup:`PDFとして出力`では定義されているプリントコンポーザをPDFに直接出力します。
:sup:`SVGとして出力`アイコンを使うとプリントコンポーザキャンバスをSVG (Scalable Vector Graphic)として保存できます。
ノート
現状の SVG出力は 基本的機能しか実装していません。これはQGISの問題ではなく,Qtライブラリが内包する問題です。 この問題が将来のバージョンで整うことを期待しています。
With the Save as template and
Load from template icons you can save the current state of a print composer
session as a .qpt template and load the template again in another session.
The Composer Manager button in the QGIS toolbar
and in File ‣ Composer Manager allows to add a new composer
template or to manage already existing templates.
Figure Composer 23: