27.1.4. GPS
27.1.4.1. 转换GPS数据
使用 GPSBabel tool 将GPS数据文件从一系列格式转换为GPX标准格式。
参数
标签 |
名字 |
类型 |
描述 |
---|---|---|---|
Input file |
|
[file] |
包含要转换的数据的文件 |
Format |
|
[enumeration] |
要转换的文件的格式,从 this list 。 |
Feature type |
|
[enumeration] 默认:0 |
要转换的数据类型
|
Output |
|
[vector: any] 默认: |
输出GPX文件的规范。以下选项之一:
|
产出
标签 |
名字 |
类型 |
描述 |
---|---|---|---|
Output layer |
|
[vector: any] |
具有GPX标准格式数据的输出图层 |
Python代码
Algorithm ID : native:convertgpsdata
import processing
processing.run("algorithm_id", {parameter_dictionary})
这个 algorithm id 当您将鼠标悬停在处理工具箱中的算法上时,将显示。这个 parameter dictionary 提供参数名称和值。看见 从控制台使用处理算法 有关如何从Python控制台运行处理算法的详细信息。
27.1.4.2. 转换GPX要素类型
使用 GPSBabel tool 将GPX要素从一种类型转换为另一种类型(例如,将所有路点要素转换为路线)。
参数
标签 |
名字 |
类型 |
描述 |
---|---|---|---|
Input file |
|
[file] |
包含要转换的数据的文件 |
Conversion |
|
[enumeration] 默认:0 |
要应用的转换类型
|
Output |
|
[vector: point or line] 默认: |
输出文件的规范。以下选项之一:
|
产出
标签 |
名字 |
类型 |
描述 |
---|---|---|---|
Output |
|
[vector: any] |
包含转换的GPX要素的输出图层 |
Python代码
Algorithm ID : native:convertgpxfeaturetype
import processing
processing.run("algorithm_id", {parameter_dictionary})
这个 algorithm id 当您将鼠标悬停在处理工具箱中的算法上时,将显示。这个 parameter dictionary 提供参数名称和值。看见 从控制台使用处理算法 有关如何从Python控制台运行处理算法的详细信息。
27.1.4.3. 从设备下载GPS数据
使用 GPSBabel tool 将数据从GPS设备下载为GPX标准格式。
参数
标签 |
名字 |
类型 |
描述 |
---|---|---|---|
Device |
|
[enumeration] 默认:Garmin Serial |
用于创建数据的GPS设备。必须在中声明 GPS Settings 对话框中。 |
Port |
|
[enumeration] |
设备连接到的端口。可用的端口取决于操作系统。 |
Feature type |
|
[enumeration] 默认:0 |
要转换的数据类型
|
Output |
|
[vector: any] 默认: |
输出文件的规范。以下选项之一:
|
产出
标签 |
名字 |
类型 |
描述 |
---|---|---|---|
Output layer |
|
[vector: any] |
具有GPX标准格式数据的输出图层 |
Python代码
Algorithm ID : native:downloadgpsdata
import processing
processing.run("algorithm_id", {parameter_dictionary})
这个 algorithm id 当您将鼠标悬停在处理工具箱中的算法上时,将显示。这个 parameter dictionary 提供参数名称和值。看见 从控制台使用处理算法 有关如何从Python控制台运行处理算法的详细信息。
27.1.4.4. 将GPS数据上传到设备
使用 GPSBabel tool 将数据从GPX标准格式上传到GPS设备。
参数
标签 |
名字 |
类型 |
描述 |
---|---|---|---|
Input file |
|
[file] |
|
Device |
|
[enumeration] 默认:Garmin Serial |
您要将数据上载到的GPS设备。必须在中声明 GPS Settings 对话框中。 |
Port |
|
[enumeration] |
设备连接到的端口。可用的端口取决于操作系统。 |
Feature type |
|
[enumeration] 默认:0 |
要上载的数据类型
|
产出
不提供任何输出。如果成功,则将数据加载到设备。
Python代码
Algorithm ID : native:uploadgpsdata
import processing
processing.run("algorithm_id", {parameter_dictionary})
这个 algorithm id 当您将鼠标悬停在处理工具箱中的算法上时,将显示。这个 parameter dictionary 提供参数名称和值。看见 从控制台使用处理算法 有关如何从Python控制台运行处理算法的详细信息。