Class: QgsVectorSimplifyMethod

class qgis.core.QgsVectorSimplifyMethod

Bases: sip.wrapper

This class contains information how to simplify geometries fetched from a vector layer

QgsVectorSimplifyMethod() construct a default object

QgsVectorSimplifyMethod(a0: QgsVectorSimplifyMethod)

Enums

SimplifyAlgorithm

alias of VectorSimplificationAlgorithm

SimplifyHint

alias of VectorRenderingSimplificationFlag

Methods

forceLocalOptimization

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

maximumScale

Gets the maximum scale at which the layer should be simplified

setForceLocalOptimization

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

setMaximumScale

Sets the maximum scale at which the layer should be simplified

setSimplifyAlgorithm

Sets the local simplification algorithm of the vector layer managed

setSimplifyHints

Sets the simplification hints of the vector layer managed

setThreshold

Sets the simplification threshold of the vector layer managed

setTolerance

Sets the tolerance of simplification in map units.

simplifyAlgorithm

Gets the local simplification algorithm of the vector layer managed

simplifyHints

Gets the simplification hints of the vector layer managed

threshold

Gets the simplification threshold of the vector layer managed

tolerance

Gets the tolerance of simplification in map units.

Signals

staticMetaObject

Attributes

staticMetaObject

SimplifyAlgorithm

alias of VectorSimplificationAlgorithm

SimplifyHint

alias of VectorRenderingSimplificationFlag

SimplifyHints

alias of VectorRenderingSimplificationFlags

forceLocalOptimization(self) bool

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

Gets the maximum scale at which the layer should be simplified

Return type:

float

setForceLocalOptimization(self, localOptimization: bool)

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)

Sets the maximum scale at which the layer should be simplified

Parameters:

maximumScale (float)

setSimplifyAlgorithm(self, simplifyAlgorithm: Qgis.VectorSimplificationAlgorithm)

Sets the local simplification algorithm of the vector layer managed

Parameters:

simplifyAlgorithm (Qgis.VectorSimplificationAlgorithm)

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

Sets the simplification hints of the vector layer managed

Parameters:

simplifyHints (Union[Qgis.VectorRenderingSimplificationFlags)

setThreshold(self, threshold: float)

Sets the simplification threshold of the vector layer managed

Parameters:

threshold (float)

setTolerance(self, tolerance: float)

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

Gets the local simplification algorithm of the vector layer managed

Return type:

Qgis.VectorSimplificationAlgorithm

simplifyHints(self) Qgis.VectorRenderingSimplificationFlags

Gets the simplification hints of the vector layer managed

Return type:

Qgis.VectorRenderingSimplificationFlags

staticMetaObject = <PyQt5.QtCore.QMetaObject object>
threshold(self) float

Gets the simplification threshold of the vector layer managed

Return type:

float

tolerance(self) float

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