Class: QgsBabelSimpleImportFormat

class qgis.core.QgsBabelSimpleImportFormat

Bases: QgsAbstractBabelFormat

A babel format capable of converting input files to GPX files.

New in version 3.22.

QgsBabelSimpleImportFormat(format: str, description: str, capabilities: Union[Qgis.BabelFormatCapabilities, Qgis.BabelFormatCapability], extensions: Iterable[str] = []) Constructor for QgsBabelSimpleImportFormat.

The format argument specifies the babel identifier for the input format.

The description argument specified a descriptive name for the format.

The capabilities argument must reflect whether the format is capable of handling waypoints, routes and/or tracks.

The optional extensions argument can be used to populate a list of known file extensions for the format (e.g. “csv”, “txt”).

QgsBabelSimpleImportFormat(QgsBabelSimpleImportFormat)

Methods

description

Returns the friendly description for the format.

extensions

Returns the list of known extensions for the format, e.g.

featureTypeToArgument

Converts a GPS feature type to the equivalent babel argument.

importCommand

param babel

description(self) str

Returns the friendly description for the format.

Return type

str

extensions(self) List[str]

Returns the list of known extensions for the format, e.g. “csv”, “txt”.

Return type

List[str]

featureTypeToArgument(type: Qgis.GpsFeatureType) str

Converts a GPS feature type to the equivalent babel argument.

importCommand(self, babel: str, featureType: Qgis.GpsFeatureType, input: str, output: str, flags: Union[Qgis.BabelCommandFlags, Qgis.BabelCommandFlag] = Qgis.BabelCommandFlags()) List[str]
Parameters
Return type

List[str]