印刷/ファイル出力

lizmapでユーザーがリアルタイムで定義したExtent

‎オンラインマップに印刷機能を追加するには、プラグインの印刷ツールを有効にする必要があります :guilabel:` 地図 タブ (:ref:`lizmap-config-map) 、QGISプロジェクトは、地図帳が有効になっていない、少なくとも1つの`印刷レイアウト<https://docs.qgis.org/latest/en/docs/user_manual/print_composer/index.html>`_ が必要です。‎

注釈

Printing will respect the feature filters and selections.

‎レイアウトの作成‎

‎レイアウトでは、次の項目を追加できます。‎

  • ‎マップ、地図帳 なし が有効‎

  • ‎北向き矢印への画像‎

  • ‎組織のロゴの画像‎

  • ‎すべての印刷に関して修正される凡例‎

  • ‎ラベル‎

  • ‎スケール‎
    • ‎どちらか :guilabel:` 数値 `

    • ‎または、スケール バーの位置を調整するために、正しい参照アンカー ポイントを使用して :guilabel:` Fit segment width ` を設定します。‎

  • ‎ロケーション マップ、概要 の機能を有効にして設定したマップは、読取 ‎概要マップの作成‎

  • Since QGIS 3, you can use QGIS expressions, in your labels for instance. You can create automatic source label according to visible layers following this example on the QGIS documentation.

‎動的コンテンツ‎

You can allow the user to modify the contents of certain labels (title, description, comment, etc). To do this, you need to add an identifier to your label in the layout.

警告

Each identifier must be unique for the whole layout. Identifiers must be strings, without integers or spaces (e.g. it must be custom_title, nor 1 neither custom title).

../../_images/interface-print-dynamic-label.jpg

Lizmap will automatically ask the user in the web-browser to fill each fields.

Tip

  • If your label is pre-populated in QGIS, the field will be pre-populated too in the web-browser.

  • If you check 'Render as HTML' for your label in QGIS, you will have a multiline label in Lizmap accepting HTML code. But you will need to <br> for line breaks.

The preview in Lizmap will be similar to this screenshot. The red rectangle is the area that the user can define in the web-browser and the user can also set the map description and the map title.

../../_images/print_user_params.jpg

縮尺

‎印刷機能は、プラグイン Map (Map options — The general options of the map) で設定した縮尺に基づいています。‎

‎レイアウトを除外する‎

Web用の印刷用のコンポジットを除外することができます。たとえば、QGISプロジェクトに4つのコンポジションが含まれている場合、プロジェクト管理者は :menuselection:` プロジェクトプロパティ-->QGISサーバー ` で2つの設定を除外することができます。Lizmap では、公開されたコンポジットのみが表示されます。‎

../../_images/exclude_layout.jpg

地図帳を使用する場合の地物情報によるレイアウト‎

Read in the popup chapter, Link to a PDF layout using the QGIS Atlas

‎外部ベースレイヤーの印刷を許可する‎

警告

This section is now deprecated. You should use the baselayers group provided by the plugin.

‎Lizmap プラグイン :guilabel:` ベースレイヤ ` タブでは、外部ベースレイヤーを選択して追加できます ( Base layers — Layers used for the background of the map ) 。これらの外部ベースレイヤーは、QGISプロジェクトの一部ではなく、デフォルトの印刷機能は、それらを印刷していません。‎

‎この不足を補完するために、Lizmapは外部ベースレイヤーの代わりにグループまたはレイヤーを印刷する簡単な方法を提供します。Lizmap Web クライアントにのみ表示されているレイヤーを印刷できるようにするには、次の手順を実行します。‎

  • ‎QGISプロジェクトに同等のレイヤーを追加する必要があります。‎

  • ‎あなたはlizmapの凡例から隠す必要があります。‎ ‎個々のレイヤーの非表示

  • ‎レイヤーの名前を次のいずれかの名前に変更します。‎

    • ‎オープンストリートマップ osm-mapnik

    • オープンストリートマップ‎ Stamen Toner osm-stamen-toner

    • オープンストリートマップ CycleMap CycleMap CycleMap osm-cyclemap

    • open-topo-map for OpenTopoMap

    • グーグル Satellite google-satellite

    • グーグル Hybrid google-hybrid

    • グーグル Terrain google-terrain

    • グーグル Streets google-street

    • Bing Road bing-road

    • Bing Aerial bing-aerial

    • Bing Hybrid bing-hybrid

    • IGN Scan ign-scan

    • IGN Plan ign-plan

    • IGN Photos ign-photo

    • IGN Cadastre ign-cadastral

../../_images/publish-print-basemap.jpg

In the screenshot above, we can notice the `osm-mapnik` layer in the `hidden` group, which is a TMS layer using https://tiles.openstreetmap.org.

注釈

‎このメソッドの使用は、使用される外部ベースレイヤーのライセンスに準拠している必要があります (Base layers — Layers used for the background of the map) 。

警告

‎動作していない場合は、サーバーがインターネットにアクセスできることを確認します。これらのベース レイヤーはオンラインでのみ提供されます。プロキシまたはファイアウォールによっては、インターネットへの要求をブロックする場合があります。あなたのサーバーがプロキシの背後にある場合は、QGIS Serverがプロキシ設定で設定されていることを確認してください( QGIS3.ini とセクション``[プロキシ]``を使用)。これらの設定については、QGISサーバーのドキュメントを参照してください。‎

‎これらのレイヤーを追加するには、既存の WMS/WMTS サービス、XYZ プロバイダー (クイックマップサービスを使用)、ローカル ファイルを使用できます。‎

‎IGN ベースレイヤーの場合、IGN の WMS または WMTS URL を使用できます。この URL に使用するキーは、リファラーと IP によって保護されている必要があります。リファラーでは、プロジェクトページの URL を .*your-url.fr.* のように指定する必要があります。IPでは、lizmapサーバーのIPとコンピュータのIPを示す必要があります(あなたのコンピュータ上のQGISでIGNのWMS URLを開くために)。両方の IP アドレスはコンマで区切る必要があります。あなたは、イグーンWMSまたはWMTS層を使用する場合は、QGISプロジェクトのEPSGコードは、3857でなければなりません注意してください。‎

‎レイアウトに独自の画像を追加する‎

‎レイアウトにカスタム イメージ、たとえば、カスタムの方位記号や組織のロゴなど を追加する場合、サーバーはこれらのイメージにもアクセスする必要があります。‎

  • ‎URL http:// の画像を使用して、ローカル コンピューターとサーバーの両方でイメージにアクセスできるようにします。‎

  • Or use QGIS expression to build a compatible path on both desktop and server (it should work out of the box, but in case it's not working, you can use an expression.) :

    1. ‎イメージを media ディレクトリに置きます ( ‎メディア‎ を参照してください)、これは必須ではありません。‎

    2. ‎QGIS 表現 @project_home || '/media/organization_logo.png'。‎

    3. ‎Windows を使用している場合でもスラッシュを使用します。‎