Class: QgsBabelGpsDeviceFormat

class qgis.core.QgsBabelGpsDeviceFormat

Bases: QgsAbstractBabelFormat

A babel format capable of interacting directly with a GPS device.

Added in version 3.22.

QgsBabelGpsDeviceFormat() Default constructor

QgsBabelGpsDeviceFormat(waypointDownloadCommand: Optional[str], waypointUploadCommand: Optional[str], routeDownloadCommand: Optional[str], routeUploadCommand: Optional[str], trackDownloadCommand: Optional[str], trackUploadCommand: Optional[str]) Constructor for QgsBabelGpsDeviceFormat.

Parameters:
  • waypointDownloadCommand – command for downloading waypoints from device

  • waypointUploadCommand – command for uploading waypoints to device

  • routeDownloadCommand – command for downloading routes from device

  • routeUploadCommand – command for uploading routes to device

  • trackDownloadCommand – command for downloading tracks from device

  • trackUploadCommand – command for uploading tracks to device

QgsBabelGpsDeviceFormat(a0: QgsBabelGpsDeviceFormat)

Methods

exportCommand

param babel:

featureTypeToArgument

Converts a GPS feature type to the equivalent babel argument.

importCommand

param babel:

exportCommand(self, babel: str | None, type: Qgis.GpsFeatureType, in_: str | None, out: str | None, flags: Qgis.BabelCommandFlags | Qgis.BabelCommandFlag = Qgis.BabelCommandFlags()) List[str]
Parameters:
Return type:

List[str]

featureTypeToArgument(type: Qgis.GpsFeatureType) str

Converts a GPS feature type to the equivalent babel argument.

importCommand(self, babel: str | None, type: Qgis.GpsFeatureType, in_: str | None, out: str | None, flags: Qgis.BabelCommandFlags | Qgis.BabelCommandFlag = Qgis.BabelCommandFlags()) List[str]
Parameters:
Return type:

List[str]