Важно

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

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

INPUT

[файл]

File containing the data to convert

Format

FORMAT

[enumeration]

Format of the file to convert, from this list.

Feature type

FEATURE_TYPE

[enumeration]

Default: 0

The type of data to convert

  • 0 — Waypoints

  • 1 — Routes

  • 2 — Tracks

Вывод

OUTPUT

[vector: any]

По умолчанию: [Сохранить во временный файл]

Specification of the output GPX file. One of:

  • Сохранить во временный файл

  • Save to File…

Результаты

Ярлык

Имя

Тип

Описание

Output layer

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 алгоритма отображается при наведении мыши на алгоритм в Инструментах анализа. Словарь parameter dictionary содержит ключи параметров и их значения. См. Изпользование алгоритмов геообработки в консоли для детального описания того, как запускать алгоритмы анализа из консоли 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

INPUT

[файл]

File containing the data to convert

Conversion

CONVERSION

[enumeration]

Default: 0

The type of conversion to apply

  • 0 — Waypoints from a route

  • 1 — Waypoints from a track

  • 2 — Routes from waypoints

  • 3 — Tracks from waypoints

Вывод

OUTPUT

[vector: point or line]

По умолчанию: [Сохранить во временный файл]

Указание выходного файла. Одно из следующих значений:

  • Сохранить во временный файл

  • Save to File…

Результаты

Ярлык

Имя

Тип

Описание

Вывод

OUTPUT

[vector: any]

Output layer with converted GPX features

Код на Python

Algorithm ID: native:convertgpxfeaturetype

import processing
processing.run("algorithm_id", {parameter_dictionary})

ID алгоритма отображается при наведении мыши на алгоритм в Инструментах анализа. Словарь parameter dictionary содержит ключи параметров и их значения. См. Изпользование алгоритмов геообработки в консоли для детального описания того, как запускать алгоритмы анализа из консоли 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

DEVICE

[enumeration]

Default:Garmin serial

The GPS device used to create the data. Must be declared in GPS Settings dialog.

Port

PORT

[enumeration]

The port the device is connected to. Available ports depend on the OS.

Feature type

FEATURE_TYPE

[enumeration]

Default: 0

The type of data to convert

  • 0 — Waypoints

  • 1 — Routes

  • 2 — Tracks

Вывод

OUTPUT

[vector: any]

По умолчанию: [Сохранить во временный файл]

Указание выходного файла. Одно из следующих значений:

  • Сохранить во временный файл

  • Save to File…

Результаты

Ярлык

Имя

Тип

Описание

Output layer

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 алгоритма отображается при наведении мыши на алгоритм в Инструментах анализа. Словарь parameter dictionary содержит ключи параметров и их значения. См. Изпользование алгоритмов геообработки в консоли для детального описания того, как запускать алгоритмы анализа из консоли 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

INPUT

[файл]

.GPX file containing the data to upload

Device

DEVICE

[enumeration]

Default:Garmin serial

The GPS device you would like to upload the data to. Must be declared in GPS Settings dialog.

Port

PORT

[enumeration]

The port the device is connected to. Available ports depend on the OS.

Feature type

FEATURE_TYPE

[enumeration]

Default: 0

The type of data to upload

  • 0 — Waypoints

  • 1 — Routes

  • 2 — Tracks

Результаты

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 алгоритма отображается при наведении мыши на алгоритм в Инструментах анализа. Словарь parameter dictionary содержит ключи параметров и их значения. См. Изпользование алгоритмов геообработки в консоли для детального описания того, как запускать алгоритмы анализа из консоли Python.