Importante

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

24.1. Introduzione ai Dati GNSS/GPS

24.1.1. Cos’è un GPS?

GPS, il Global Positioning System, è un sistema satellitare che permette a chiunque abbia un ricevitore GPS di trovare la propria posizione esatta in qualsiasi parte del mondo. Il GPS è utilizzato come ausilio alla navigazione, ad esempio in aereo, in barca e dagli escursionisti. Il ricevitore GPS utilizza i segnali dei satelliti per calcolare la latitudine, la longitudine e (talvolta) l’elevazione. La maggior parte dei ricevitori ha anche la capacità di memorizzare:

  • posizioni (note come waypoints)

  • sequenze di posizioni che compongono una route pianificata

  • e un registro track del percorso del ricevitore nel tempo.

Waypoint, route e track sono i tre tipi di elementi di base dei dati GPS. QGIS visualizza i waypoint in layer di punti, mentre le route e le track sono visualizzate in layer di linee.

Nota

QGIS supporta anche ricevitori GNSS. Ma noi continuiamo a usare il termine GPS in questa documentazione.

24.1.2. Trasferire o caricare dati GPS

24.1.2.1. Loading a GPX file

Ci sono una dozzina di formati di file diversi per memorizzare dati GPS. Il formato utilizzato da QGIS è chiamato GPX (GPS eXchange format), che è un formato standard di interscambio che può contenere svariati numeri di posizioni, percorsi e tracce nello stesso file.

Per caricare un file GPX:

  1. Apri la scheda GPS nella finestra di dialogo Gestore delle Sorgenti Dati, ad es:

    • Fai clic sul pulsante dataSourceManager Gestore delle Sorgenrti Dati sulla barra degli strumenti (o premere Ctrl+L) e attiva la scheda obiettivo

    • Oppure seleziona Layer ► Aggiungi layer ► addGpsLayer Aggiungi layer GPX…

  2. Usa il pulsante Sfoglia accanto all’opzione Dataset GPX per selezionare il file GPX.

  3. Utilizza le caselle di controllo per selezionare i Tipi di elementi che vuoi caricare dal file. Ogni tipo di elemento (Waypoints, Tracks o Routes) sarà caricato in un layer separato.

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

Fig. 24.1 Caricare finestra di dialogo Dati 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

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

Nota

Le unità GPS consentono di memorizzare i dati in diversi sistemi di coordinate. Quando si scarica un file GPX (dall’unità GPS o da un sito web) e lo si carica in QGIS, assicurarsi che i dati memorizzati nel file GPX utilizzino il sistema WGS 84 (latitudine/longitudine). QGIS lo prevede ed è la specifica GPX ufficiale. Vedere GPX 1.1 Schema Documentation.