Class: QgsBabelGpsDeviceFormat¶
- class qgis.core.QgsBabelGpsDeviceFormat¶
Bases:
QgsAbstractBabelFormat
A babel format capable of interacting directly with a GPS device.
New in version 3.22.
QgsBabelGpsDeviceFormat() Default constructor
QgsBabelGpsDeviceFormat(waypointDownloadCommand: str, waypointUploadCommand: str, routeDownloadCommand: str, routeUploadCommand: str, trackDownloadCommand: str, trackUploadCommand: 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(
QgsBabelGpsDeviceFormat
)Methods
- param babel:
Converts a GPS feature type to the equivalent babel argument.
- param babel:
- exportCommand(self, babel: str, type: Qgis.GpsFeatureType, in_: str, out: str, flags: Qgis.BabelCommandFlags | Qgis.BabelCommandFlag = Qgis.BabelCommandFlags()) List[str] ¶
- Parameters:
babel (str) –
type (Qgis.GpsFeatureType) –
in (str) –
out (str) –
flags (Union[Qgis.BabelCommandFlags) –
- Return type:
List[str]
- featureTypeToArgument(type: Qgis.GpsFeatureType) str ¶
Converts a GPS feature type to the equivalent babel argument.
- importCommand(self, babel: str, type: Qgis.GpsFeatureType, in_: str, out: str, flags: Qgis.BabelCommandFlags | Qgis.BabelCommandFlag = Qgis.BabelCommandFlags()) List[str] ¶
- Parameters:
babel (str) –
type (Qgis.GpsFeatureType) –
in (str) –
out (str) –
flags (Union[Qgis.BabelCommandFlags) –
- Return type:
List[str]