Class: QgsBabelSimpleImportFormat

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

Added in version 3.22.

Class Hierarchy

Inheritance diagram of qgis.core.QgsBabelSimpleImportFormat

Base classes

QgsAbstractBabelFormat

Abstract base class for babel GPS formats.

Methods

description

Returns the friendly description for the format.

extensions

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

class qgis.core.QgsBabelSimpleImportFormat[source]

Bases: QgsAbstractBabelFormat

__init__(format: str | None, description: str | None, capabilities: Qgis.BabelFormatCapabilities | Qgis.BabelFormatCapability, extensions: Iterable[str | None] = [])

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”).

Parameters:
__init__(a0: QgsBabelSimpleImportFormat)
Parameters:

a0 (QgsBabelSimpleImportFormat)

description(self) str[source]

Returns the friendly description for the format.

Return type:

str

extensions(self) List[str][source]

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

Return type:

List[str]