重要
Translation is a community effort you can join. This page is currently translated at 45.28%.
28.1.5. GPS
28.1.5.1. Convert GPS data
Uses the GPSBabel tool to convert a GPS data file from a range of formats to the GPX standard format.
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
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] 默认: |
Specification of the output GPX file. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Output layer |
|
[vector: any] |
Output layer with data in GPX standard format |
Python代码
Algorithm ID: native:convertgpsdata
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.1.5.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).
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Input file |
|
[file] |
File containing the data to convert |
Conversion |
|
[enumeration] Default: 0 |
The type of conversion to apply
|
Output |
|
[vector: point or line] 默认: |
Specification of the output file. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Output |
|
[vector: any] |
Output layer with converted GPX features |
Python代码
Algorithm ID: native:convertgpxfeaturetype
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.1.5.3. Download GPS data from device
Uses the GPSBabel tool to download data from a GPS device into the GPX standard format.
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Device |
|
[enumeration] Default:Garmin serial |
The GPS device used to create the data. Must be declared in GPS Settings dialog. |
Port |
|
[enumeration] |
The port the device is connected to. Available ports depend on the OS. |
Feature type |
|
[enumeration] Default: 0 |
The type of data to convert
|
Output |
|
[vector: any] 默认: |
Specification of the output file. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Output layer |
|
[vector: any] |
Output layer with data in GPX standard format |
Python代码
Algorithm ID: native:downloadgpsdata
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
28.1.5.4. Upload GPS data to device
Uses the GPSBabel tool to upload data to a GPS device from the GPX standard format.
参数
标注 |
名称 |
类型 |
描述 |
---|---|---|---|
Input file |
|
[file] |
|
Device |
|
[enumeration] Default:Garmin serial |
The GPS device you would like to upload the data to. Must be declared in GPS Settings dialog. |
Port |
|
[enumeration] |
The port the device is connected to. Available ports depend on the OS. |
Feature type |
|
[enumeration] Default: 0 |
The type of data to upload
|
输出
No output is provided. If successful, data are loaded to the device.
Python代码
Algorithm ID: native:uploadgpsdata
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。