Retrieve a named metadata for this layer if one
exists (either as a .qmd file on disk or as a
record in the users style table in their personal qgis.db)

Parameters:

uri –

the file name or other URI for the

metadata file. First an attempt will be made to see if this
is a file and load that, if that fails the qgis.db metadata
table will be consulted to see if there is a metadata who’s
key matches the URI.
:param resultFlag: a reference to a flag that will be set to false if
we did not manage to load the default metadata.

Retrieve a named style for this layer if one
exists (either as a .qml file on disk or as a
record in the users style table in their personal qgis.db)

Parameters:

uri –

the file name or other URI for the

style file. First an attempt will be made to see if this
is a file and load that, if that fails the qgis.db styles
table will be consulted to see if there is a style who’s
key matches the URI.
:param resultFlag: a reference to a flag that will be set to false if
we did not manage to load the default style.

Returns the maximum map scale (i.e. most “zoomed in” scale) at which the layer will be visible.
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
A scale of 0 indicates no maximum scale visibility.

Note

Scale based visibility is only used if setScaleBasedVisibility() is set to true.

Returns the minimum map scale (i.e. most “zoomed out” scale) at which the layer will be visible.
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
A scale of 0 indicates no minimum scale visibility.

Note

Scale based visibility is only used if setScaleBasedVisibility() is set to true.

By emitting this signal the layer tells that either appearance or content have been changed
and any view showing the rendered layer should refresh itself.
If deferredUpdate is true then the layer will only be repainted when the canvas is next
re-rendered, and will not trigger any canvas redraws itself. [signal]

Save the current metadata of this layer as a named metadata
(either as a .qmd file on disk or as a
record in the users style table in their personal qgis.db)

Parameters:

uri – the file name or other URI for the

metadata file. First an attempt will be made to see if this
is a file and save to that, if that fails the qgis.db metadata
table will be used to create a metadata entry who’s
key matches the URI.
:param resultFlag: a reference to a flag that will be set to false if
we did not manage to save the default metadata.

Save the properties of this layer as a named style
(either as a .qml file on disk or as a
record in the users style table in their personal qgis.db)

Parameters:

uri – the file name or other URI for the

style file. First an attempt will be made to see if this
is a file and save to that, if that fails the qgis.db styles
table will be used to create a style entry who’s
key matches the URI.
:param resultFlag: a reference to a flag that will be set to false if
we did not manage to save the default style.

Sets the auto refresh interval (in milliseconds) for the layer. This
will cause the layer to be automatically redrawn on a matching interval.
Note that auto refresh must be enabled by calling setAutoRefreshEnabled().

Note that auto refresh triggers deferred repaints of the layer. Any map
canvas must be refreshed separately in order to view the refreshed layer.

Sets the maximum map scale (i.e. most “zoomed in” scale) at which the layer will be visible.
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
A scale of 0 indicates no maximum scale visibility.

Note

Scale based visibility is only used if setScaleBasedVisibility() is set to true.

Sets the minimum map scale (i.e. most “zoomed out” scale) at which the layer will be visible.
The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
A scale of 0 indicates no minimum scale visibility.

Note

Scale based visibility is only used if setScaleBasedVisibility() is set to true.

Will advise the map canvas (and any other interested party) that this layer requires to be repainted.
Will emit a repaintRequested() signal.
If deferredUpdate is true then the layer will only be repainted when the canvas is next
re-rendered, and will not trigger any canvas redraws itself.