Class: QgsMapInfoSymbolConverter

class qgis.core.QgsMapInfoSymbolConverter

Bases: sip.wrapper

Handles conversion of MapInfo symbols to QGIS symbology.

New in version 3.20:

Methods

convertFillSymbol

Converts the MapInfo fill symbol with the specified identifier to a QgsFillSymbol.

convertLineSymbol

Converts the MapInfo line symbol with the specified identifier to a QgsLineSymbol.

convertMarkerSymbol

Converts the MapInfo marker symbol with the specified identifier to a QgsMarkerSymbol.

convertFillSymbol(identifier: int, context: QgsMapInfoSymbolConversionContext, foreColor: QColor | Qt.GlobalColor, backColor: QColor | Qt.GlobalColor = QColor()) QgsFillSymbol

Converts the MapInfo fill symbol with the specified identifier to a QgsFillSymbol.

The caller takes ownership of the returned symbol.

Parameters:
Return type:

QgsFillSymbol

convertLineSymbol(identifier: int, context: QgsMapInfoSymbolConversionContext, foreColor: QColor | Qt.GlobalColor, size: float, sizeUnit: Qgis.RenderUnit, interleaved: bool = False) QgsLineSymbol

Converts the MapInfo line symbol with the specified identifier to a QgsLineSymbol.

The caller takes ownership of the returned symbol.

Parameters:
Return type:

QgsLineSymbol

convertMarkerSymbol(identifier: int, context: QgsMapInfoSymbolConversionContext, color: QColor | Qt.GlobalColor, size: float, sizeUnit: Qgis.RenderUnit) QgsMarkerSymbol

Converts the MapInfo marker symbol with the specified identifier to a QgsMarkerSymbol.

This method will convert a MapInfo “MapInfo 3.0 Compatible” symbol with a specific identifier to a QgsMarkerSymbol.

The caller takes ownership of the returned symbol.

Parameters:
Return type:

QgsMarkerSymbol