Class: QgsInterpolatedLineSymbolLayer¶
- class qgis.core.QgsInterpolatedLineSymbolLayer¶
Bases:
QgsLineSymbolLayer
A symbol layer that represents vector layer line feature as interpolated line The interpolation is done between two values defined at the extremities
New in version 3.20.
QgsInterpolatedLineSymbolLayer() Constructor
Methods
- rtype
bool
- rtype
QgsInterpolatedLineSymbolLayer
Copies all data defined properties of this layer to another symbol layer.
Copies paint effect of this layer to another symbol layer
Creates the symbol layer
- param context
Returns the expression related to the end extremity value for width for color
Returns the expression related to the end extremity value for width
Returns the interpolated color used to render the colors of lines, see
:py:class:`QgsInterpolatedLineColor`
Returns the interpolated width used to render the width of lines, see
:py:class:`QgsInterpolatedLineWidth`
- param symbol
- rtype
str
- rtype
Dict[str, Any]
- param points
Restores older data defined properties from string map.
Sets the expressions (as string) that define the extremety values af the line feature for color
Sets the expressions (as string) that define the extremety values af the line feature for width
Sets the interpolated color used to render the colors of lines,
see
QgsInterpolatedLineColor
Sets the interpolated width used to render the width of lines,
see
QgsInterpolatedLineWidth
Sets the width unit
- param feature
- param context
Returns the epression related to the start extremity value for width for color
Returns the epression related to the start extremity value for width
- param feature
- param context
- param context
Returns the width unit
- canCauseArtifactsBetweenAdjacentTiles(self) bool ¶
- Return type
bool
- clone(self) QgsInterpolatedLineSymbolLayer ¶
- Return type
- copyDataDefinedProperties(self, destLayer: QgsSymbolLayer)¶
Copies all data defined properties of this layer to another symbol layer.
- Parameters
destLayer – destination layer
- copyPaintEffect(self, destLayer: QgsSymbolLayer)¶
Copies paint effect of this layer to another symbol layer
- Parameters
destLayer – destination layer
New in version 2.9.
- create(properties: Dict[str, Any]) QgsSymbolLayer ¶
Creates the symbol layer
- Parameters
properties (Dict[str) –
- Return type
- drawPreviewIcon(self, context: QgsSymbolRenderContext, size: QSize)¶
- Parameters
context (QgsSymbolRenderContext) –
size (QSize) –
- endValueExpressionForColor(self) str ¶
Returns the expression related to the end extremity value for width for color
- Return type
str
- endValueExpressionForWidth(self) str ¶
Returns the expression related to the end extremity value for width
- Return type
str
- interpolatedColor(self) QgsInterpolatedLineColor ¶
Returns the interpolated color used to render the colors of lines, see
:py:class:`QgsInterpolatedLineColor`
- Return type
- interpolatedWidth(self) QgsInterpolatedLineWidth ¶
Returns the interpolated width used to render the width of lines, see
:py:class:`QgsInterpolatedLineWidth`
- Return type
- isCompatibleWithSymbol(self, symbol: QgsSymbol) bool ¶
- Parameters
symbol (QgsSymbol) –
- Return type
bool
- layerType(self) str ¶
- Return type
str
- properties(self) Dict[str, Any] ¶
- Return type
Dict[str, Any]
- renderPolyline(self, points: QPolygonF, context: QgsSymbolRenderContext)¶
- Parameters
points (QPolygonF) –
context (QgsSymbolRenderContext) –
- restoreOldDataDefinedProperties(self, stringMap: Dict[str, Any])¶
Restores older data defined properties from string map.
New in version 3.0.
- setExpressionsStringForColor(self, start: str, end: str)¶
Sets the expressions (as string) that define the extremety values af the line feature for color
- Parameters
start (str) –
end (str) –
- setExpressionsStringForWidth(self, start: str, end: str)¶
Sets the expressions (as string) that define the extremety values af the line feature for width
- Parameters
start (str) –
end (str) –
- setInterpolatedColor(self, interpolatedLineColor: QgsInterpolatedLineColor)¶
Sets the interpolated color used to render the colors of lines,
see
QgsInterpolatedLineColor
- Parameters
interpolatedLineColor (QgsInterpolatedLineColor) –
- setInterpolatedWidth(self, interpolatedLineWidth: QgsInterpolatedLineWidth)¶
Sets the interpolated width used to render the width of lines,
see
QgsInterpolatedLineWidth
- Parameters
interpolatedLineWidth (QgsInterpolatedLineWidth) –
- setWidthUnit(self, strokeWidthUnit: QgsUnitTypes.RenderUnit)¶
Sets the width unit
- Parameters
strokeWidthUnit (QgsUnitTypes.RenderUnit) –
- startFeatureRender(self, feature: QgsFeature, context: QgsRenderContext)¶
- Parameters
feature (QgsFeature) –
context (QgsRenderContext) –
- startRender(self, context: QgsSymbolRenderContext)¶
- Parameters
context (QgsSymbolRenderContext) –
- startValueExpressionForColor(self) str ¶
Returns the epression related to the start extremity value for width for color
- Return type
str
- startValueExpressionForWidth(self) str ¶
Returns the epression related to the start extremity value for width
- Return type
str
- stopFeatureRender(self, feature: QgsFeature, context: QgsRenderContext)¶
- Parameters
feature (QgsFeature) –
context (QgsRenderContext) –
- stopRender(self, context: QgsSymbolRenderContext)¶
- Parameters
context (QgsSymbolRenderContext) –
- usedAttributes(self, context: QgsRenderContext) Set[str] ¶
- Parameters
context (QgsRenderContext) –
- Return type
Set[str]
- widthUnit(self) QgsUnitTypes.RenderUnit ¶
Returns the width unit
- Return type