Importante
A tradução é um esforço comunitário você pode contribuir. Esta página está atualmente traduzida em 35.71%.
24.2. Rastreio GPS em tempo real
QGIS can help you do field mapping with a GPS receiver. Such a live tracking operation is done using the GPS Toolbar. Some device configuration may be needed before connecting QGIS and the GPS receiver.
24.2.1. GPS toolbar
The GPS Toolbar provides the main tools to control a live tracking session. It can be activated from . It follows the state of the project, GPS, and current GPS track, and enables actions only when they make sense. Once a device is detected by QGIS, you will be able to interact with it:
Recenter map on GPS location: the map will immediately recenter on the current GPS position regardless of the automatic recentering parameter.
Set destination layer for GPS digitized features: By default, QGIS will Follow active layer for feature digitizing, meaning that GPS digitizing tools will adapt to the layer selected in Layers panel and created features will be stored in it accordingly. While this may be useful in some contexts, it also implies careful interaction with other layers to avoid storing inadvertently features in undesired layers. This option allows you to explicitly indicate a layer for the data storage during the live tracking session, and you could switch depending on your needs. Exposed tools will adapt as well to the selected layer type.
The GPS destination layer is made automatically editable when a feature is being created, and the user is notified accordingly.
actions for feature creation:
Show GPS information: opens the GPS Information panel
a display box for quick access to some GPS information components you may need:
The Settings button opens a drop-down menu with common settings which are expected to be modified mid-session:
Options to control map recentering:
Automatically add track vertices whenever new locations are received from the GPS device.
Automatically save added features: features created from GPS locations are immediately committed to their target layers (skipping the usual layer edit buffer)
Time stamp destination to adjust the field for time fix storage
Log to GeoPackage/SpatiaLite…: When activated, the user will be prompted to select an existing GeoPackage/SpatiaLite file or enter a new file name. A
gps_points
andgps_tracks
table will be created in the file with a predefined structure.All incoming GPS messages will be logged to the
gps_points
layer, along with speed, bearing, altitude and accuracy information from the GPS.When the GPS is disconnected (or QGIS closed), the entire recorded GPS track will be added to the
gps_tracks
table (along with some calculated information like track length, start and end times).Log NMEA sentences…: enables logging all raw NMEA strings from the device to a text file
GPS settings… to access the GPS global options dialog
Dica
Live status bar information on position
When a GPS device is connected and the user moves the cursor over the map canvas, a live status bar message displays the distance and bearing from the cursor to the GPS position. Project distance and bearing settings are respected in this display. On a touch screen device, use a tap-and-hold event to trigger the live status bar message.
24.2.2. GPS Information Panel
For full monitoring of a live GPS tracking in QGIS, you may need to enable the GPS Information Panel ( or press Ctrl+0).
In the top right corner of the GPS Information Panel, you press Connect to initiate connection between QGIS and a plugged-in GPS receiver, or Disconnect them.
In the top left of the panel, following buttons are accessible:
Settings: drop-down menu to live tracking options you may need to modify during a session
24.2.2.1. Posição e atributos adicionais
In the Position tab, if the GPS is receiving signals from satellites, you will see your position in latitude, longitude and altitude together with additional attributes.
Latitude
Longitude
Altitude (Geoid): Altitude/elevation above or below the mean sea level
Altitude (WGS 84 ellipsoid): Altitude/elevation above or below the WGS-84 Earth ellipsoid
Geoidal separation: Difference between the WGS-84 Earth ellipsoid and mean sea level (geoid),
-
means mean sea level is below ellipsoidTime of fix
Speed: Ground speed
Direction: Bearing measured in degrees clockwise from true north to the direction of travel
HDOP: Horizontal dilution of precision
VDOP: Vertical dilution of precision
PDOP: Dilution of precision
H accuracy: Horizontal accuracy in meters
V accuracy: Vertical accuracy in meters
3D accuracy: 3D Root Mean Square (RMS) in meters
Mode: GPS receiver configuration 2D/3D mode, can be
automatic
ormanual
Dimensions: Position fix dimension, can be
2D
,3D
orNo fix
Quality: Positioning quality indicator
Status: Position fix status, can be
Valid
orInvalid
Satellites: Count of satellites used in obtaining the fix
Total track length: Total distance of current GPS track
Distance from start of track: Direct distance from first vertex in current GPS track to latest vertex
24.2.2.2. Signal
With Signal tab, you can see the signal strength of the satellites you are receiving signals from.
24.2.3. Conectar um GPS com Bluetooth para rasteamento ao vivo
Com QGIS você pode conectar um GPS via Bluetooth para a coleta de dados em campo. Para executar esta tarefa, você precisa de um dispositivo GPS com Bluetooth e um receptor Bluetooth em seu computador.
Em primeiro lugar você deve deixar seu aparelho de GPS ser reconhecido e emparelhado com o computador. Ligue o GPS, vá até o ícone Bluetooth na área de notificação e busca de um novo dispositivo.
No lado direito da máscara de seleção de dispositivos, verifique se todos os dispositivos estão selecionados, para que sua unidade GPS provavelmente apareça entre os disponíveis. Na próxima etapa, um serviço de conexão serial deve estar disponível, selecione-o e clique em :guilabel: botão Configure.
Lembre-se o número da porta COM atribuído à conexão GPS como resultante pelas propriedades Bluetooth.
Após o reconhecimento do GPS, faça o emparelhamento para a conexão. Normalmente, o código de autorização é 0000
.
Agora abra :guilabel: painel informações de GPS e alterne para |opções| Tela de opções de GPS. Selecione a porta COM atribuída à conexão GPS e clique em Conectar. Depois de um tempo, um cursor indicando sua posição deve aparecer.
Se QGIS não pode receber dados do GPS, então você deve reiniciar seu dispositivo GPS, espere 5-10 segundos, em seguida, tente se conectar novamente. Normalmente este trabalho soluciona. Se você receber um erro de conexão novamente certifique-se que você não tem outro receptor Bluetooth perto de você, emparelhado com a mesma unidade GPS.
24.2.4. Examples of GPS devices connection in QGIS
24.2.4.1. Utilizando GPSMAP 60cs
MS Windows
Easiest way to make it work is to use a middleware (freeware, not open) called GPSGate.
Launch the program, make it scan for GPS devices (works for both USB and BT ones) and then in QGIS:
Ubuntu/Mint GNU/Linux
Como para Windows a maneira mais fácil é usar um servidor no meio, neste caso GPSD, assim
Install the program
sudo apt install gpsd
Em seguida, carregar o módulo do kernel
garmin_gps
sudo modprobe garmin_gps
And then connect the unit and check with
dmesg
the actual device being used by the unit, for example/dev/ttyUSB0
.Now you can launch gpsd
gpsd /dev/ttyUSB0
E, finalmente, conectar-se com a ferramenta de acompanhamento ao vivo do QGIS.
24.2.4.2. Usando BTGP-38KM datalogger (somente Bluetooth)
Usando GPSD (no Linux) ou GPSGate (no Windows) é fácil.
24.2.4.3. Usando datalogger BlueMax GPS-4044 (ambos BT e USB)
MS Windows
The live tracking works for both USB and BT modes, by using GPSGate or even without it, just use the Autodetect mode, or point the tool to the right port.
Ubuntu/Mint GNU/Linux
Para USB
O acompanhamento ao vivo funciona tanto com GPSD
gpsd /dev/ttyACM3
ou sem ela, ligando a ferramenta de acompanhamento ao vivo QGIS diretamente para o dispositivo (por exemplo, /dev/ttyACM3
).
Para Bluetooth
O acompanhamento ao vivo funciona tanto com GPSD
gpsd /dev/rfcomm0
ou sem ela, ligando a ferramenta de acompanhamento ao vivo QGIS diretamente para o dispositivo (por exemplo, /dev/rfcomm0
).