Class: QgsBabelFormatRegistry

A registry for QgsAbstractBabelFormat GPSBabel formats.

QgsBabelFormatRegistry is not usually directly created, but rather accessed through QgsApplication.gpsBabelFormatRegistry().

Added in version 3.22.

Methods

deviceFormat

Returns a registered device format by name.

deviceNames

Returns a list of the names of all registered devices.

devices

Returns a map of device name to device format.

importFileFilter

Returns a file filter string representing all registered import formats.

importFormat

Returns a registered import format by name.

importFormatByDescription

Returns a registered import format by description.

importFormatNames

Returns a list of the names of all registered import formats.

reloadFromSettings

Reloads the registry's members from the currently stored configuration.

class qgis.core.QgsBabelFormatRegistry[source]

Bases: object

__init__()

Constructor for QgsBabelFormatRegistry.

The registry will automatically be populated with standard formats, and with devices previously configured and stored in QSettings.

deviceFormat(self, name: str | None) QgsBabelGpsDeviceFormat | None[source]

Returns a registered device format by name.

See also

deviceNames()

Parameters:

name (Optional[str])

Return type:

Optional[QgsBabelGpsDeviceFormat]

deviceNames(self) List[str][source]

Returns a list of the names of all registered devices.

Return type:

List[str]

devices(self) Any

Returns a map of device name to device format.

See also

deviceFormat()

See also

deviceNames()

Return type:

Any

importFileFilter(self) str[source]

Returns a file filter string representing all registered import formats.

Return type:

str

importFormat(self, name: str | None) QgsBabelSimpleImportFormat | None[source]

Returns a registered import format by name.

Parameters:

name (Optional[str])

Return type:

Optional[QgsBabelSimpleImportFormat]

importFormatByDescription(self, description: str | None) QgsBabelSimpleImportFormat | None[source]

Returns a registered import format by description.

See also

importFormat()

Parameters:

description (Optional[str])

Return type:

Optional[QgsBabelSimpleImportFormat]

importFormatNames(self) List[str][source]

Returns a list of the names of all registered import formats.

Return type:

List[str]

reloadFromSettings(self)[source]

Reloads the registry’s members from the currently stored configuration.