Class: QgsVectorSimplifyMethod

Contains settings for simplifying geometries fetched from a vector layer.

class qgis.core.QgsVectorSimplifyMethod[source]

Bases: object

__init__()

construct a default object

__init__(a0: QgsVectorSimplifyMethod)
Parameters:

a0 (QgsVectorSimplifyMethod)

SimplifyAlgorithm

alias of VectorSimplificationAlgorithm

SimplifyHint

alias of VectorRenderingSimplificationFlag

SimplifyHints

alias of VectorRenderingSimplificationFlags

forceLocalOptimization(self) bool[source]

Gets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries

Return type:

bool

maximumScale(self) float[source]

Gets the maximum scale at which the layer should be simplified

Return type:

float

setForceLocalOptimization(self, localOptimization: bool)[source]

Sets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries

Parameters:

localOptimization (bool)

setMaximumScale(self, maximumScale: float)[source]

Sets the maximum scale at which the layer should be simplified

Parameters:

maximumScale (float)

setSimplifyAlgorithm(self, simplifyAlgorithm: Qgis.VectorSimplificationAlgorithm)[source]

Sets the local simplification algorithm of the vector layer managed

Parameters:

simplifyAlgorithm (Qgis.VectorSimplificationAlgorithm)

setSimplifyHints(self, simplifyHints: Qgis.VectorRenderingSimplificationFlags | Qgis.VectorRenderingSimplificationFlag)[source]

Sets the simplification hints of the vector layer managed

Parameters:

simplifyHints (Union[Qgis.VectorRenderingSimplificationFlags, Qgis.VectorRenderingSimplificationFlag])

setThreshold(self, threshold: float)[source]

Sets the simplification threshold of the vector layer managed

Parameters:

threshold (float)

setTolerance(self, tolerance: float)[source]

Sets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal

Parameters:

tolerance (float)

simplifyAlgorithm(self) Qgis.VectorSimplificationAlgorithm[source]

Gets the local simplification algorithm of the vector layer managed

Return type:

Qgis.VectorSimplificationAlgorithm

simplifyHints(self) Qgis.VectorRenderingSimplificationFlags[source]

Gets the simplification hints of the vector layer managed

Return type:

Qgis.VectorRenderingSimplificationFlags

threshold(self) float[source]

Gets the simplification threshold of the vector layer managed

Return type:

float

tolerance(self) float[source]

Gets the tolerance of simplification in map units. Represents the maximum distance in map units between two coordinates which can be considered equal

Return type:

float