QGIS 1.8
  • Documentation QGIS 1.8

目次

  • User guide/Manual (QGIS 1.8)
    • はじめに
    • 記述ルール
    • 序文
    • 特徴
    • はじめましょう
    • QGIS GUI
    • 一般ツール
    • QGISの設定
    • 投影法の利用方法
    • QGISブラウザ
    • Working with Vector Data
    • Working with Raster Data
    • Working with OGC Data
    • Working with GPS Data
    • GRASS GIS の統合
    • オープンストリートマップ
    • SEXTANTE
    • プリントコンポーザ
      • 新しいプリントコンポーザテンプレートを開く
      • プリントコンポーザを利用する
      • カレントQGISマップキャンバスをプリントコンポーザに追加する
      • プリントコンポーザに他のエレメントを追加する
      • ナブゲーションツール
      • 取り消しと再実行ツール
      • 基本図形と矢印の追加
      • 属性テーブル値の追加
      • エレメントの前面移動, 背面移動、整列
      • 出力の作成
      • プリントコンポーザレイアウトの保存とロード
    • プラグイン
    • ヘルプとサポート
    • 付録
    • 文献とWeb参照
  • User guide/Manual PDF’s
  • PyQGIS cookbook (QGIS 1.8)
  • Documentation Guidelines
  • A gentle introduction in GIS

プリントコンポーザ¶

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:

アイコン

目的

アイコン

目的

       
mActionFolder

テンプレートからロードする

mActionFileSaveAs

テンプレートとして保存する

mActionSaveMapAsImage

イメージ画像として出力する

mActionSaveAsPDF

PDF型式で出力する

mActionSaveAsSVG

SVGとして出力する

mActionFilePrint

印刷または Postscriptとして出力する

mActionZoomFullExtent

全域表示

mActionZoomIn

拡大

mActionZoomOut

縮小

mActionDraw

再読み込み

mActionUndo

アンドゥ

mActionRedo

最後の変更を元に戻す

mActionAddMap

QGISマップキャンバスから新規地図を追加する

mActionAddImage

印刷構成にイメージ画像を追加

mActionLabel

印刷構成にラベルを追加

mActionAddLegend

印刷構成に新規凡例を追加

mActionScaleBar

印刷構成に新規スケールバー追加

mActionAddBasicShape

印刷構成に基本図形を追加

mActionAddArrow

印刷構成に矢印を追加

mActionOpenTable

印刷構成に属性テーブルを追加

mActionSelectPan

印刷構成でアイテムを選択/移動する

mActionMoveItemContent

アイテム内のコンテンツを移動する

mActionGroupItems

印刷構成内のアイテムをグループ化する

mActionUnGroupItems

印刷構成内のアイテムグループを解除する

mActionRaiseItems

アイテムを前面に移動

mActionLowerItems

選択アイテムを背面に移動

mActionMoveItemsToTop

選択アイテムを最前面に移動

mActionMoveItemsToBottom

選択アイテムを最背面に移動

mActionAlignLeft

選択アイテムを左側で整列

mActionAlignRight

選択アイテムを右側で整列

mActionAlignHCenter

選択アイテムを中央合わせで整列

mActionAlignVCenter

選択アイテムを水平方向の中央で整列

mActionAlignTop

選択アイテムを上側線で整列

mActionAlignBottom

選択アイテムを下側線で整列

Table Composer 1: プリントコンポーザツール

すべてのプリントコンポーザツールはメニューから利用でき,かつツールバーのアイコンから利用できます.ツールバーはマウスがツールバーの上にあるときにマウス右ボタンで表示と非表示を切り替えできます.

新しいプリントコンポーザテンプレートを開く¶

プリントコンポーザで作業を開始する前にいくつかのラスタまたはベクタレイヤをQGISマップキャンバスにロードして必要に応じてプロパティを設定しておく必要があります. すべての描画と描画設定が終わったらツールバーの mActionNewComposer New Print Composer アイコンをクリックするかメニューの File ‣ New Print Composer を選択して下さい.

プリントコンポーザを利用する¶

プリントコンポーザーを開くと、現在のQGISマップキャンバス、凡例、スケールバー、画像、基本図形、矢印とテキストが追加できる空白のキャンバスを提供します。Figure_composer_1 は、checkbox :guilabel:`グリッドにスナップ`モードですが要素が追加される前のプリントコンポーザーの初期ビューを示します。

Figure Composer 1:

../../../_images/print_composer_blank.png

Print Composer nix

プリントコンポーザには3個のタブがあります

  • The Composition tab allows you to set paper size, orientation, the print quality for the output file in dpi and to activate snapping to a grid of a defined resolution. Please note, the checkbox Snap to grid feature only works, if you define a grid resolution > 0. Furthermore you can also activate the checkbox Print as raster checkbox. This means all elements will be rastered before printing or saving as Postscript of PDF.
  • The Item Properties tab displays the properties for the selected map element. Click the mActionSelectPan Select/Move item icon to select an element (e.g. legend, scalebar or label) on the canvas. Then click the Item Properties tab and customize the settings for the selected element.
  • The Command history tab displays a history of all changes applied to the print composer layout. With a mouse click it is possible to undo and redo layout steps back and forth to a certain status.

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.

カレントQGISマップキャンバスをプリントコンポーザに追加する¶

Click on the mActionAddMap 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:

  • Rectangle is the default setting. It only displays an empty box with a message ‘Map will be printed here’.
  • Cache renders the map in the current screen resolution. If case you zoom in or out the composer window, the map is not rendered again but the image will be scaled.
  • Render means, that if you zoom in or out the composer window, the map will be rendered again, but for space reasons, only up to a maximum resolution.

キャッシュ が新規にプリントコンポーザに地図が追加された時のデフォルトプレビューモードです。

You can resize the map element by clicking on the mActionSelectPan 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 mActionMoveItemContent 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 mIconLock Lock the element position and again to unlock the element. You can lock the map element also activating the checkbox 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.

Map item properties tab — Map and Extents dialog¶

地図ダイアログ

The Map dialog of the map Item Properies tab provides following functionalities (see figure_composer_2):

Figure Composer 2:

../../../_images/print_composer_map1.png

Map Dialog nix

  • The Preview area allows to define the preview modes ‘Rectangle’, ‘Cache’ and ‘Render’, as described above. Click on the [Update preview] button to apply changes to the map view.
  • The Map area allows to resize the map element specifying the width and height or the scale. The field Rotation selectnumber allows to rotate the map element content clockwise in degrees. Note, a coordinate frame can only be added with the default value 0. Furthermore you can enable the checkboxes checkbox Lock layers for map items and checkbox Draw map canvas items.

QGISマップキャンバスにあるビューを拡大縮小やスクロール、ベクタやラスタのプロパティ変更等を行った時に更新したい場合はプリントコンポーザビューで更新したい地図エレメントを選択した後に [プレビュー更新] ボタンをクリックして下さい。

領域ダイアログ

The Extents dialog of the map item tab provides following functionalities (see Figure figure_composer_3)):

Figure Composer 3:

../../../_images/print_composer_map2.png

Extents Dialog nix

  • The Map extent area allow to specify the map extent using Y and X min/max values or clicking the [Set to map canvas extent] button.

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)).

Map item properties tab — Grid and General options dialog¶

グリッドダイアログ

The Grid dialog of the map Item Properties tab provides following functionalities (see Figure_composer_4):

Figure Composer 4:

../../../_images/print_composer_map3.png

Grid Dialog nix

  • checkbox グリッドを表示しますか チェックボックスでは地図エレメントにオーバーレイするグリッドを有効にします。グリッドタイプとしてソリッドラインと十字を選択できます。 その上XとY方向の間隔、XとYのオフセット、幅の十字またはライングリッドタイプについて指定できます。

  • checkbox 注記を描画する チェックボックスでは地図フレームに座標を追加できます。注記は地図フレームの内側または外側に描画できます。注記の描画方向は水平、垂直、水平と垂直、または外枠の方向が指定できます。 またグリッドの色、注記のフォント、地図フレームから注記への距離、描画する座標の精度を指定できます。

一般情報 オプション ダイアログ

The General options dialog of the map Item Properties tab provides following functionalities (see Figure_composer_5):

Figure Composer 5:

../../../_images/print_composer_map4.png

General Options Dialog nix

  • Here you can define color and outline width for the element frame, set a background color and opacity for the map canvas. The [Position and size] button opens the Set item position dialog and allows to set the map canvas position using reference points or coordinates. Furthermore you can select or unselect to display the element frame with the checkbox Show frame checkbox. With the Item ID you can create a relationship to the other print composer items.

プリントコンポーザに他のエレメントを追加する¶

プリントコンポーザにカレントQGISマップキャンバスを追加することに加えて凡例、スケールバー、イメージ、ラベルエレメントについて追加、位置の設定、移動、カスタマイズが可能です。

Label item properties tab - Label and General options dialog¶

To add a label, click the mActionLabel 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:

../../../_images/print_composer_label1.png

Label Options Dialog nix

  • The Label dialog offers to add text labels to the composer canvas. You can define the horizontal and vertical alignment, select font and font color for the text and it is possible to define a text margin in mm.

一般情報 オプション ダイアログ

The General options dialog of the label Item Properties tab provides following functionalities:

Figure Composer 7:

../../../_images/print_composer_label2.png

General Options Dialog nix

  • Here you can define color and outline width for the element frame, set a background color and opacity for the label. The Position button opens the Set items position dialog and allows to set the map canvas position using reference points or coordinates. Furthermore you can select or unselect to display the element frame with the checkbox Show frame checkbox. Use the Item ID to create a relationship to other print composer items.

Image item properties tab - Picture options and General options dialog¶

To add an image, click the mActionSaveMapAsImage 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:

../../../_images/print_composer_image1.png

Picture Options Dialog Dialog nix

  • The Preloaded Images field then shows all pictures stored in the selected directories.
  • The Options area shows the current selected picture and allows to define width, height and clockwise rotation of the picture. It is also possible to add a user specific SVG path. Activating the checkbox Sync with map checkbox synchronizes the rotation of a picture in the QGIS map canvas (i.e. a rotated north arrow) with the appropriate print composer image.
  • **ディレクトリ検索**エリアでは、ピクチャデータベースのSVGフォーマットのイメージのディレクトリを追加したり削除することができます。

一般情報 オプション ダイアログ

The General options dialog of the image Item Properties tab provides following functionalities:

Figure Composer 9:

../../../_images/print_composer_image2.png

General Options Dialog Dialog nix

  • Here you can define color and outline width for the element frame, set a background color and opacity for the picture. The [Position and size] button opens the Set item position dialog and allows to set the map canvas position using reference points or coordinates. Furthermore you can select or unselect to display the element frame with the checkbox Show frame checkbox. With the Item ID you can create a relationship to other print composer items.

Legend item properties tab - General, Legend items and Item option dialog¶

To add a map legend, click the mActionAddLegend 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:

../../../_images/print_composer_legend1.png

General Dialog nix

  • Here you can adapt the legend title. You can change the font of the legend title, layer and item name. You can change width and height of the legend symbol and you can add layer, symbol, icon label and box space. Since QGIS 1.8, you can wrap the text of the legend title to a given character.

凡例アイテムダイアログ

The Legend items dialog of the legend Item Properties tab provides following functionalities (see figure_composer_11):

Figure Composer 11:

../../../_images/print_composer_legend2.png

Legend Items Dialog nix

  • The legend items window lists all legend items and allows to change item order, edit layer names, remove and restore items of the list. After changing the symbology in the QGIS main window you can click on [Update] to adapt the changes in the legend element of the print composer. The item order can be changed using the [Up] and [Down] buttons or with ‘drag and drop’ functionality.

一般情報 オプション ダイアログ

The General options dialog of the legend Item Properties tab provides following functionalities (see figure_composer_12):

Figure Composer 12:

../../../_images/print_composer_legend3.png

General Options Dialog nix

  • Here you can define color and outline width for the element frame, set a background color and opacity for the legend. The [Position and size] button opens the Set item position dialog and allows to set the map canvas position using reference points or coordinates. Furthermore you can select or unselect to display the element frame with the checkbox Show frame checkbox. Use the Item ID to create a relationship to other print composer items.

Scalebar item properties tab - Scalebar and General options dialog¶

To add a scalebar, click the mActionScaleBar 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:

../../../_images/print_composer_scalebar1.png

Scalebar Options Dialog nix

  • The Scalebar dialog allows to define the segment size of the scalebar in map units, the map units used per bar units, and how many left and right segments units from 0 should be used.
  • スケールバーのスタイルを指定できます。スタイルとしてはシングルとダブルボックス、ライン目盛を真ん中、上、下に置くかと数字のスタイルの指定ができます。

  • Furthermore you can define height, line width, label and box space of the scalebar. Add a unit label and define the scalebar font and color.

一般情報 オプション ダイアログ

The General options dialog of the scalebar Item Properties tab provides following features (see figure_composer_7 b)):

Figure Composer 14:

../../../_images/print_composer_scalebar2.png

General Options Dialog nix

  • Here you can define color and outline width for the element frame, set a background color and opacity for the scalebar. The [Position and size] button opens the Set items position dialog and allows to set the map canvas position using reference points or coordinates. Furthermore you can select or unselect to display the element frame with the checkbox Show frame checkbox. With the Item ID you can create a relationship to the other print composer items.

ナブゲーションツール¶

プリントコンポーザの地図ナビゲーションのためには4個のツールが提供されています:

  • mActionZoomIn ズームイン

  • mActionZoomOut ズームアウト

  • mActionZoomFullExtent 全域へズーム

  • mActionDraw 表示のリフレッシュ (もしビューの状態が地図と食い違っている場合)

取り消しと再実行ツール¶

レイアウト処理中に、変更の取り消しと再実行することが可能である。これは、取り消しと再実行ツールで行うことができます:

  • mActionUndo 最後の変更を戻す

  • mActionRedo 最後の変更を元に戻す

あるいは :guilabel:`コマンドヒストリ`タブでマウスクリックします (figure_composer_9 を参照)。

Figure Composer 16:

../../../_images/command_hist.png

Command history in the Print Composer nix

基本図形と矢印の追加¶

プリントコンポーザキャンパスに基本図形 (楕円, 四角形, 三角形)と矢印を追加できます。

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:

../../../_images/print_composer_shape.png

Shape Dialog nix

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:

../../../_images/print_composer_arrow.png

Arrow Dialog nix

属性テーブル値の追加¶

ベクタ属性値のテーブルをプリントコンポーザキャンバスに追加することができます。

テーブルダイアログ

The Table dialog of the attribute table item tab provides following functionalities (see figure_composer_20):

Figure Composer 20:

../../../_images/print_composer_attribute1.png

Table Dialog nix

  • The Table dialog allows to select the vector layer and columns of the attribute table. Attribute columns can be sorted and you can define to show its values ascending or descending.
  • 最大表示行数を指定することができます。また現在のコンポーザキャンパスに表示されている地物の属性のみを表示するように指定できます。

  • さらにテーブルとヘッダと内容のフォントのようなグリッドの性質を指定することができます。

一般情報 オプション ダイアログ

The General options dialog of the attribute table item tab provides following functionalities (see figure_composer_21):

Figure Composer 21:

../../../_images/print_composer_attribute2.png

General Options Dialog nix

  • Here you can define color and outline width for the element frame, set a background color and opacity for the table. The [Position and size] button opens the Set item position dialog and allows to set the map canvas position using reference points or coordinates. Furthermore you can select or unselect to display the element frame with the checkbox Show frame checkbox. Use the Item ID to create a relationship to the other print composeritems.

エレメントの前面移動, 背面移動、整列¶

エレメントの前面移動または背面移動機能は mActionRaiseItems :sup:`選択したアイテムを上へ`プルダウンメニューの中にあります。プリントコンポーザキャンバス内のエレメントを選択して、選択したエレメントと他のエレメントの位置関係を比較して前面移動または背面移動の機能を選択してください ( table_composer_1 を参照)。

There are several alignment functionalities available within the mActionAlignLeft 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:

../../../_images/print_composer_complete.png

Print Composer with map view, legend, scalebar, coordinates and text added nix

プリントコンポーザでは多彩な種類の出力形式を利用でき、それぞれの解像度(印刷品質)と紙のサイズを指定できます:

  • mActionFilePrint 印刷 アイコンを使うと接続されたプリンタかインストールされているプリンタドライバに依存したPostscriptファイルを出力し、レイアウトを印刷することができます。

  • The mActionSaveMapAsImage Export as image icon exports the composer canvas in several image formats such as PNG, BPM, TIF, JPG,...
  • mActionSaveAsPDF :sup:`PDFとして出力`では定義されているプリントコンポーザをPDFに直接出力します。

  • mActionSaveAsSVG :sup:`SVGとして出力`アイコンを使うとプリントコンポーザキャンバスをSVG (Scalable Vector Graphic)として保存できます。

ノート

現状の SVG出力は 基本的機能しか実装していません。これはQGISの問題ではなく,Qtライブラリが内包する問題です。 この問題が将来のバージョンで整うことを期待しています。

プリントコンポーザレイアウトの保存とロード¶

With the mActionFileSaveAs Save as template and mActionFolder 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 mActionComposerManager 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:

../../../_images/print_composer_manager.png

The Print Composer Manager nix

If not stated otherwise, all content is licensed under Creative Commons Attribution-ShareAlike 3.0 licence (CC BY-SA)

Select graphics from The Noun Project collection - Last updated on 7:17 Nov 10, 2013