重要

Translation is a community effort you can join. This page is currently translated at 40.00%.

24.1. GNSS/GPSデータの導入

24.1.1. GPSとは?

GPS、全地球測位システム、は、衛星型のシステムであり、GPS受信機さえあれば、世界中どこでも自分の正確な位置を知ることができます。GPSは航法の補助として、例えば飛行機やボート、ハイカーなどに利用されています。GPS受信機は、衛星からの信号を使って緯度、経度、(場合によっては)標高を算出します。ほとんどの受信機は次を保存する機能も持っています:

  • 場所(ウェイポイント として知られています)

  • 計画した 経路 を構成する場所の順序

  • そして受信機の異動の経時的な トラック ログ。

ウェイポイント、経路及びトラックは、GPSデータにおける三つの基本的な地物型です。QGISはウェイポイントをポイントレイヤに表示し、経路とトラックはラインストリングレイヤに表示されます。

注釈

QGISはGNSS受信機もサポートしています。しかし、この文書の作成ではGPSという用語を使っています。

24.1.2. GPSデータを転送又は読み込む

24.1.2.1. Loading a GPX file

GPSデータを格納するための異なるファイル形式はいくつもあります。同じファイル内のウェイポイント、ルートとトラックの任意の数を含むことができ、標準の交換フォーマットであるQGISが使用するフォーマットGPX(GPS交換フォーマット)と呼ばれます。

GPX ファイルを読み込むには:

  1. データソースマネージャ ダイアログの GPS タブを開きます、つまり:

    • ツールバーの dataSourceManager データソースマネージャを開く ボタンをクリックし(または Ctrl+L を押し)、目標のタブを有効にします

    • 又は、レイヤ ► レイヤを追加 ► addGpsLayer GPXレイヤを追加... を選択します

  2. GPXデータセット オプションの隣にある ... ブラウズ ボタンを使ってGPXファイルを選びます

  3. ファイルから読み込む 地物の型 を選ぶにはチェックボックスを使います。それぞれの地物の型(ウェイポイントトラック 又は ルート)は別々のレイヤに読み込まれます。

../../../_images/gps_datasource.png

図 24.1 GPSデータの読み込みダイアログ

24.1.2.2. Loading to or from a device

There are lots of different types of GPS devices and formats. Since QGIS uses GPX files, you need a way to convert other GPS file formats to GPX. QGIS can do that using the free program GPSBabel. GPSBabel can help you convert waypoints, tracks, and routes between popular GPS receivers such as Garmin or Magellan and mapping programs like Google Earth or Basecamp. Literally hundreds of GPS receivers and programs are supported. It can also transfer GPS data between your computer and a GPS device.

Under Settings ► options Options ► gps GPS ► gps GPSBabel, QGIS allows you to define your own device type and set parameters of conversion that could later be used by the Processing GPS algorithms.

../../../_images/options_gpsbabel.png

図 24.2 GPS Babel settings

  1. First you have to define the Path to GPSBabel binaries.

  2. Then you may want to add your device. You can update devices list using symbologyAdd Add new device or symbologyRemove Remove device button.

  3. For each device:

    • you provide a Device name

    • you configure different Commands QGIS will use while interacting with it, such as:

      • Waypoint download from the device

      • Waypoint upload to the device

      • Route download from the device

      • Route upload to the device

      • Track download from the device

      • Track upload to the device

      While the commands are usually GPSBabel commands, you can also use any other command line program that can create a GPX file. QGIS will replace the keywords %type, %in, and %out when it runs the command.

      As an example, if you create a device type with the download command gpsbabel %type -i garmin -o gpx %in %out and then use it to download waypoints from port /dev/ttyS0 to the file output.gpx, QGIS will replace the keywords and run the command gpsbabel -w -i garmin -o gpx /dev/ttyS0 output.gpx.

      Read the GPSBabel manual for the command line options that may be specific to your use case.

Once you have created a new device type, it will appear in the device lists for the GPS download and upload algorithms.

注釈

GPSユニットでは、異なる座標系でデータを保存できます。GPXファイルを(GPSユニットまたはウェブサイトから)ダウンロードし、QGISで読み込む場合は、GPXファイルに保存されているデータがWGS 84(緯度経度)を使用していることを確認してください。QGISはこれを期待しており、公式なGPX仕様です。GPX 1.1 Schema Documentation <https://www.topografix.com/GPX/1/1/>`_ を参照してください。