Class: QgsMapInfoSymbolConverter¶
- class qgis.core.QgsMapInfoSymbolConverter¶
Bases:
sip.wrapper
Handles conversion of MapInfo symbols to QGIS symbology.
New in version 3.20:
Methods
Converts the MapInfo fill symbol with the specified
identifier
to aQgsFillSymbol
.Converts the MapInfo line symbol with the specified
identifier
to aQgsLineSymbol
.Converts the MapInfo marker symbol with the specified
identifier
to aQgsMarkerSymbol
.- convertFillSymbol(identifier: int, context: QgsMapInfoSymbolConversionContext, foreColor: Union[QColor, Qt.GlobalColor], backColor: Union[QColor, Qt.GlobalColor] = QColor()) QgsFillSymbol ¶
Converts the MapInfo fill symbol with the specified
identifier
to aQgsFillSymbol
.The caller takes ownership of the returned symbol.
- Parameters
identifier (int) –
context (QgsMapInfoSymbolConversionContext) –
foreColor (Union[QColor) –
backColor (Union[QColor) –
- Return type
- convertLineSymbol(identifier: int, context: QgsMapInfoSymbolConversionContext, foreColor: Union[QColor, Qt.GlobalColor], size: float, sizeUnit: QgsUnitTypes.RenderUnit, interleaved: bool = False) QgsLineSymbol ¶
Converts the MapInfo line symbol with the specified
identifier
to aQgsLineSymbol
.The caller takes ownership of the returned symbol.
- Parameters
identifier (int) –
context (QgsMapInfoSymbolConversionContext) –
foreColor (Union[QColor) –
size (float) –
sizeUnit (QgsUnitTypes.RenderUnit) –
interleaved (bool = False) –
- Return type
- convertMarkerSymbol(identifier: int, context: QgsMapInfoSymbolConversionContext, color: Union[QColor, Qt.GlobalColor], size: float, sizeUnit: QgsUnitTypes.RenderUnit) QgsMarkerSymbol ¶
Converts the MapInfo marker symbol with the specified
identifier
to aQgsMarkerSymbol
.This method will convert a MapInfo “MapInfo 3.0 Compatible” symbol with a specific
identifier
to aQgsMarkerSymbol
.The caller takes ownership of the returned symbol.
- Parameters
identifier (int) –
context (QgsMapInfoSymbolConversionContext) –
color (Union[QColor) –
size (float) –
sizeUnit (QgsUnitTypes.RenderUnit) –
- Return type