Class: QgsVectorSimplifyMethod¶
- class qgis.core.QgsVectorSimplifyMethod¶
Bases:
sip.wrapper
This class contains information how to simplify geometries fetched from a vector layer
New in version 2.2.
QgsVectorSimplifyMethod() construct a default object
QgsVectorSimplifyMethod(
QgsVectorSimplifyMethod
)Methods
Gets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries
Gets the maximum scale at which the layer should be simplified
Sets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries
Sets the maximum scale at which the layer should be simplified
Sets the local simplification algorithm of the vector layer managed
Sets the simplification hints of the vector layer managed
Sets the simplification threshold of the vector layer managed
Sets the tolerance of simplification in map units.
Gets the local simplification algorithm of the vector layer managed
Gets the simplification hints of the vector layer managed
Gets the simplification threshold of the vector layer managed
Gets the tolerance of simplification in map units.
Attributes
- 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:
- simplifyHints(self) QgsVectorSimplifyMethod.SimplifyHints ¶
Gets the simplification hints of the vector layer managed
- Return type:
- 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