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(QgsVectorSimplifyMethod)

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.

Attributes

AntialiasingSimplification

Distance

FullSimplification

GeometrySimplification

NoSimplification

SnapToGrid

SnappedToGridGlobal

Visvalingam

staticMetaObject

AntialiasingSimplification = 2
Distance = 0
FullSimplification = 3
GeometrySimplification = 1
NoSimplification = 0
class SimplifyAlgorithm

Bases: int

baseClass

alias of QgsVectorSimplifyMethod

class SimplifyHint

Bases: int

baseClass

alias of QgsVectorSimplifyMethod

class SimplifyHints
class SimplifyHints(Union[QgsVectorSimplifyMethod.SimplifyHints, QgsVectorSimplifyMethod.SimplifyHint])
class SimplifyHints(QgsVectorSimplifyMethod.SimplifyHints)

Bases: sip.wrapper

baseClass

alias of QgsVectorSimplifyMethod

SnapToGrid = 1
SnappedToGridGlobal = 3
Visvalingam = 2
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: QgsVectorSimplifyMethod.SimplifyAlgorithm)

Sets the local simplification algorithm of the vector layer managed

Parameters:

simplifyAlgorithm (QgsVectorSimplifyMethod.SimplifyAlgorithm) –

setSimplifyHints(self, simplifyHints: QgsVectorSimplifyMethod.SimplifyHints | QgsVectorSimplifyMethod.SimplifyHint)

Sets the simplification hints of the vector layer managed

Parameters:

simplifyHints (Union[QgsVectorSimplifyMethod.SimplifyHints) –

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) QgsVectorSimplifyMethod.SimplifyAlgorithm

Gets the local simplification algorithm of the vector layer managed

Return type:

QgsVectorSimplifyMethod.SimplifyAlgorithm

simplifyHints(self) QgsVectorSimplifyMethod.SimplifyHints

Gets the simplification hints of the vector layer managed

Return type:

QgsVectorSimplifyMethod.SimplifyHints

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