Class: QgsVectorLayerElevationProperties¶
Vector layer specific subclass of
QgsMapLayerElevationProperties
.
Added in version 3.26.
Class Hierarchy¶
Base classes¶
Base class for storage of map layer elevation properties. |
|
Methods
Returns the altitude binding method, which determines how altitude is bound to individual vertices in features. |
|
Returns the altitude clamping method, which dictates how feature heights are interpreted with respect to terrain heights. |
|
Returns the feature custom tolerance. |
|
Returns |
|
Returns the elevation limit, which is used when |
|
Returns |
|
Returns the feature extrusion height. |
|
Returns the symbol used to render polygons for the layer in elevation profile plots. |
|
Returns the symbol used to render lines for the layer in elevation profile plots. |
|
Returns the symbol used to render points for the layer in elevation profile plots. |
|
Returns the symbology option used to render the vector profile in elevation profile plots. |
|
Returns |
|
Sets the altitude binding method, which determines how altitude is bound to individual vertices in features. |
|
Sets the altitude clamping method, which dictates how feature heights are interpreted with respect to terrain heights. |
|
Sets the feature custom tolerance. |
|
Sets whether custom tolerance is enabled. |
|
Sets the elevation limit, which is used when |
|
Sets whether extrusion is enabled. |
|
Sets the feature extrusion height. |
|
Sets the fill symbol used to render polygons for the layer in elevation profile plots. |
|
Sets the line symbol used to render lines for the layer in elevation profile plots. |
|
Sets the marker symbol used to render points for the layer in elevation profile plots. |
|
Sets the symbology option used to render the vector profile in elevation profile plots. |
|
Sets whether layer symbology should be respected when rendering elevation profile plots. |
|
Sets whether the marker symbol should also be shown in continuous surface plots. |
|
Sets the type of profile the layer represents. |
|
Returns |
|
Returns the type of profile the layer represents. |
- class qgis.core.QgsVectorLayerElevationProperties[source]¶
Bases:
QgsMapLayerElevationProperties
- __init__(parent: QObject | None)
Constructor for QgsVectorLayerElevationProperties, with the specified
parent
object.- Parameters:
parent (Optional[QObject])
- binding(self) Qgis.AltitudeBinding [source]¶
Returns the altitude binding method, which determines how altitude is bound to individual vertices in features.
Note
Binding only relevant for line or polygon feature types – it is not applicable for point layers.
See also
- Return type:
- clamping(self) Qgis.AltitudeClamping [source]¶
Returns the altitude clamping method, which dictates how feature heights are interpreted with respect to terrain heights.
See also
- Return type:
- customTolerance(self) float [source]¶
Returns the feature custom tolerance.
Warning
custom tolerance is only applied if
customToleranceEnabled()
isTrue
.If enabled, the profile generator will use this tolerance instead of the one defined in the elevation profile widget.
See also
- Return type:
float
- customToleranceEnabled(self) bool [source]¶
Returns
True
if custom tolerance is enabled.See also
See also
- Return type:
bool
- elevationLimit(self) float [source]¶
Returns the elevation limit, which is used when
profileSymbology()
isQgis
.ProfileSurfaceSymbology.FillBelow orQgis
.ProfileSurfaceSymbology.FillAbove to limit the fill to a specific elevation range.By default this is NaN, which indicates that there is no elevation limit.
See also
Added in version 3.32.
- Return type:
float
- extrusionEnabled(self) bool [source]¶
Returns
True
if extrusion is enabled.See also
See also
- Return type:
bool
- extrusionHeight(self) float [source]¶
Returns the feature extrusion height.
Warning
extrusion is only applied if
extrusionEnabled()
isTrue
.Note
the
zScale()
factor is NOT applied to extrusion heights.See also
- Return type:
float
- profileFillSymbol(self) QgsFillSymbol | None [source]¶
Returns the symbol used to render polygons for the layer in elevation profile plots.
The symbol will be used in the following circumstances:
A polygon feature is intersected by a profile line and
extrusionEnabled()
isTrue
See also
- Return type:
Optional[QgsFillSymbol]
- profileLineSymbol(self) QgsLineSymbol | None [source]¶
Returns the symbol used to render lines for the layer in elevation profile plots.
The symbol will be used in the following circumstances:
A point feature is shown on the profile chart when
extrusionEnabled()
isTrue
A line feature is intersected by a profile line and
extrusionEnabled()
isTrue
A polygon feature is intersected by a profile line and
extrusionEnabled()
isFalse
See also
- Return type:
Optional[QgsLineSymbol]
- profileMarkerSymbol(self) QgsMarkerSymbol | None [source]¶
Returns the symbol used to render points for the layer in elevation profile plots.
The symbol will be used in the following circumstances:
A point feature is shown on the profile chart when
extrusionEnabled()
isFalse
A line feature is intersected by a profile line and
extrusionEnabled()
isFalse
See also
- Return type:
Optional[QgsMarkerSymbol]
- profileSymbology(self) Qgis.ProfileSurfaceSymbology [source]¶
Returns the symbology option used to render the vector profile in elevation profile plots.
See also
- Return type:
- respectLayerSymbology(self) bool [source]¶
Returns
True
if layer symbology should be respected when rendering elevation profile plots.Specifically, this will result in the layer’s symbols (or symbol colors) being used to draw features in the profile plots.
See also
- Return type:
bool
- setBinding(self, binding: Qgis.AltitudeBinding)[source]¶
Sets the altitude
binding
method, which determines how altitude is bound to individual vertices in features.Note
Binding only relevant for line or polygon feature types – it is not applicable for point layers.
See also
- Parameters:
binding (Qgis.AltitudeBinding)
- setClamping(self, clamping: Qgis.AltitudeClamping)[source]¶
Sets the altitude
clamping
method, which dictates how feature heights are interpreted with respect to terrain heights.See also
- Parameters:
clamping (Qgis.AltitudeClamping)
- setCustomTolerance(self, tolerance: float)[source]¶
Sets the feature custom tolerance.
Warning
custom tolerance is only applied if
customToleranceEnabled()
isTrue
.If enabled, the profile generator will use this tolerance instead of the one defined in the elevation profile widget.
See also
- Parameters:
tolerance (float)
- setCustomToleranceEnabled(self, enabled: bool)[source]¶
Sets whether custom tolerance is
enabled
.See also
See also
- Parameters:
enabled (bool)
- setElevationLimit(self, limit: float)[source]¶
Sets the elevation
limit
, which is used whenprofileSymbology()
isQgis
.ProfileSurfaceSymbology.FillBelow orQgis
.ProfileSurfaceSymbology.FillAbove to limit the fill to a specific elevation range.Set to NaN to indicate that there is no elevation limit.
See also
Added in version 3.32.
- Parameters:
limit (float)
- setExtrusionEnabled(self, enabled: bool)[source]¶
Sets whether extrusion is
enabled
.See also
See also
- Parameters:
enabled (bool)
- setExtrusionHeight(self, height: float)[source]¶
Sets the feature extrusion height.
Warning
extrusion is only applied if
extrusionEnabled()
isTrue
.Note
the
zScale()
factor is NOT applied to extrusion heights.See also
- Parameters:
height (float)
- setProfileFillSymbol(self, symbol: QgsFillSymbol | None)[source]¶
Sets the fill
symbol
used to render polygons for the layer in elevation profile plots.Ownership of
symbol
is transferred to the plot.The symbol will be used in the following circumstances:
A polygon feature is intersected by a profile line and
extrusionEnabled()
isTrue
See also
- Parameters:
symbol (Optional[QgsFillSymbol])
- setProfileLineSymbol(self, symbol: QgsLineSymbol | None)[source]¶
Sets the line
symbol
used to render lines for the layer in elevation profile plots.Ownership of
symbol
is transferred to the plot.The symbol will be used in the following circumstances:
A point feature is shown on the profile chart when
extrusionEnabled()
isTrue
A line feature is intersected by a profile line and
extrusionEnabled()
isTrue
A polygon feature is intersected by a profile line and
extrusionEnabled()
isFalse
See also
- Parameters:
symbol (Optional[QgsLineSymbol])
- setProfileMarkerSymbol(self, symbol: QgsMarkerSymbol | None)[source]¶
Sets the marker
symbol
used to render points for the layer in elevation profile plots.Ownership of
symbol
is transferred to the plot.The symbol will be used in the following circumstances:
A point feature is shown on the profile chart when
extrusionEnabled()
isFalse
A line feature is intersected by a profile line and
extrusionEnabled()
isFalse
See also
- Parameters:
symbol (Optional[QgsMarkerSymbol])
- setProfileSymbology(self, symbology: Qgis.ProfileSurfaceSymbology)[source]¶
Sets the
symbology
option used to render the vector profile in elevation profile plots.See also
- Parameters:
symbology (Qgis.ProfileSurfaceSymbology)
- setRespectLayerSymbology(self, enabled: bool)[source]¶
Sets whether layer symbology should be respected when rendering elevation profile plots.
Specifically, this will result in the layer’s symbols (or symbol colors) being used to draw features in the profile plots.
See also
- Parameters:
enabled (bool)
- setShowMarkerSymbolInSurfacePlots(self, show: bool)[source]¶
Sets whether the marker symbol should also be shown in continuous surface plots.
See also
- Parameters:
show (bool)
- setType(self, type: Qgis.VectorProfileType)[source]¶
Sets the
type
of profile the layer represents.See also
- Parameters:
type (Qgis.VectorProfileType)
- showMarkerSymbolInSurfacePlots(self) bool [source]¶
Returns
True
if the marker symbol should also be shown in continuous surface plots.See also
- Return type:
bool
- type(self) Qgis.VectorProfileType [source]¶
Returns the type of profile the layer represents.
See also
- Return type: