Class: QgsRasterLineSymbolLayer¶
Line symbol layer type which draws line sections using a raster image file.
Added in version 3.24.
Class Hierarchy¶
Base classes¶
Base class for line symbol layer types which draws line sections using a QBrush. |
|
Abstract base class for line symbol layers. |
|
Abstract base class for symbol layers. |
Methods
Returns the line opacity. |
|
Returns the raster image path. |
|
Set the line opacity. |
|
Set the raster image path. |
Static Methods
Creates a new |
|
Turns relative paths in properties map to absolute when reading and vice versa when writing. |
- class qgis.core.QgsRasterLineSymbolLayer[source]¶
Bases:
QgsAbstractBrushedLineSymbolLayer
- __init__(path: str | None = '')
Constructor for QgsRasterLineSymbolLayer, with the specified raster image path.
- Parameters:
path (Optional[str] = '')
- static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None [source]¶
Creates a new
QgsRasterLineSymbolLayer
, using the settings serialized in theproperties
map (corresponding to the output fromQgsRasterLineSymbolLayer.properties()
).- Parameters:
properties (Dict[str, Any] = {})
- Return type:
Optional[QgsSymbolLayer]
- opacity(self) float [source]¶
Returns the line opacity.
- Return type:
float
- Returns:
opacity value between 0 (fully transparent) and 1 (fully opaque)
See also
- static resolvePaths(properties: Dict[str, Any], pathResolver: QgsPathResolver, saving: bool)[source]¶
Turns relative paths in properties map to absolute when reading and vice versa when writing. Used internally when reading/writing symbols.
- Parameters:
properties (Dict[str, Any])
pathResolver (QgsPathResolver)
saving (bool)