23.1. Introducing GNSS/GPS Data

23.1.1. What is GPS?

GPS, the Global Positioning System, is a satellite-based system that allows anyone with a GPS receiver to find their exact position anywhere in the world. GPS is used as an aid in navigation, for example in airplanes, in boats and by hikers. The GPS receiver uses the signals from the satellites to calculate its latitude, longitude and (sometimes) elevation. Most receivers also have the capability to store:

  • locations (known as waypoints)

  • sequences of locations that make up a planned route

  • and a track log of the receiver's movement over time.

Waypoints, routes and tracks are the three basic feature types in GPS data. QGIS displays waypoints in point layers, while routes and tracks are displayed in linestring layers.

备注

QGIS supports also GNSS receivers. But we keep using the term GPS in this documentation.

23.1.2. Defining GPS device types

There are lots of different types of GPS devices. QGIS allows you to define your own device type and set parameters of use under Settings ► Options ► GPS ► GPSBabel tab. Read GPSBabel for more details.

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

23.1.3. Transferring or loading GPS data

有几十种不同的文件格式用于存储GPS数据。QGIS使用的格式称为GPX (GPS交换格式),这是一种标准的交换格式,可以在同一文件中包含任意数量的航点、路径和轨迹。

To load a GPX file:

  1. Open the GPS tab in the Data Source Manager dialog, i.e.:

    • Click the dataSourceManager Open Data Source Manager button on the toolbar (or press Ctrl+L) and enable the target tab

    • Or select Layer ► Add Layer ► addGpsLayer Add GPX Layer...

  2. Use the ... Browse button next to the GPX dataset option to select the GPX file

  3. Use the check boxes to select the Feature types you want to load from the file. Each feature type (Waypoints, Tracks or Routes) will be loaded in a separate layer.

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

图 23.1 加载GPS数据对话框

Since QGIS uses GPX files, you need a way to convert other GPS file formats to GPX. This can be done for many formats using the free program GPSBabel. This program can also transfer GPS data between your computer and a GPS device. QGIS relies on GPSBabel to do these things and provides you with convenient Processing algorithms available under the GPS group.

备注

GPS units allow you to store data in different coordinate systems. When downloading a GPX file (from your GPS unit or a web site) and then loading it in QGIS, be sure that the data stored in the GPX file uses WGS 84 (latitude/longitude). QGIS expects this, and it is the official GPX specification. See GPX 1.1 Schema Documentation.