25.1.4. GPS
25.1.4.1. Convert GPS data
Uses the GPSBabel tool to convert a GPS data file from a range of formats to the GPX standard format.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input file |
|
[file] |
File containing the data to convert |
Format |
|
[enumeration] |
Format of the file to convert, from this list. |
Feature type |
|
[enumeration] Default: 0 |
The type of data to convert
|
Output |
|
[vector: any] Default: |
Specification of the output GPX file. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Output layer |
|
[vector: any] |
Output layer with data in GPX standard format |
Python code
Algorithm ID: native:convertgpsdata
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Verarbeitung Algorithmen von der Konsole aus verwenden for details on how to run processing algorithms from the Python console.
25.1.4.2. Convert GPX feature type
Uses the GPSBabel tool to convert GPX features from one type to another (e.g. converting all waypoint features to a route).
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input file |
|
[file] |
File containing the data to convert |
Conversion |
|
[enumeration] Default: 0 |
The type of conversion to apply
|
Output |
|
[vector: point or line] Default: |
Specification of the output file. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Output |
|
[vector: any] |
Output layer with converted GPX features |
Python code
Algorithm ID: native:convertgpxfeaturetype
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Verarbeitung Algorithmen von der Konsole aus verwenden for details on how to run processing algorithms from the Python console.
25.1.4.3. Download GPS data from device
Uses the GPSBabel tool to download data from a GPS device into the GPX standard format.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Device |
|
[file] |
The GPS device used to create the data |
Port |
|
[enumeration] |
The port the device is connected to. |
Feature type |
|
[enumeration] Default: 0 |
The type of data to convert
|
Output |
|
[vector: any] Default: |
Specification of the output file. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Output layer |
|
[vector: any] |
Output layer with data in GPX standard format |
Python code
Algorithm ID: native:downloadgpsdata
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Verarbeitung Algorithmen von der Konsole aus verwenden for details on how to run processing algorithms from the Python console.
25.1.4.4. Upload GPS data to device
Uses the GPSBabel tool to upload data to a GPS device from the GPX standard format.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input file |
|
[file] |
|
Device |
|
[file] |
The GPS device to upload the data to |
Port |
|
[enumeration] |
The port the device is connected to. |
Feature type |
|
[enumeration] Default: 0 |
The type of data to upload
|
Outputs
No output is provided. If successful, data are loaded to the device.
Python code
Algorithm ID: native:uploadgpsdata
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Verarbeitung Algorithmen von der Konsole aus verwenden for details on how to run processing algorithms from the Python console.