Class: QgsVectorSimplifyMethod¶
-
class
qgis.core.
QgsVectorSimplifyMethod
¶ Bases:
sip.wrapper
construct a default object
QgsVectorSimplifyMethod(QgsVectorSimplifyMethod)
This class contains information how to simplify geometries fetched from a vector layer
New in version 2.2: Enums
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.
Signals
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
¶ Bases:
sip.wrapper
QgsVectorSimplifyMethod.SimplifyHints(Union[QgsVectorSimplifyMethod.SimplifyHints, QgsVectorSimplifyMethod.SimplifyHint]) QgsVectorSimplifyMethod.SimplifyHints(QgsVectorSimplifyMethod.SimplifyHints)
-
baseClass
¶ alias of
QgsVectorSimplifyMethod
-
-
SnapToGrid
= 1¶
-
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
-
maximumScale
(self) → float¶ Gets the maximum scale at which the layer should be simplified
-
setForceLocalOptimization
(self, localOptimization: bool)¶ Sets where the simplification executes, after fetch the geometries from provider, or when supported, in provider before fetch the geometries
-
setMaximumScale
(self, maximumScale: float)¶ Sets the maximum scale at which the layer should be simplified
-
setSimplifyAlgorithm
(self, simplifyAlgorithm: QgsVectorSimplifyMethod.SimplifyAlgorithm)¶ Sets the local simplification algorithm of the vector layer managed
-
setSimplifyHints
(self, simplifyHints: Union[QgsVectorSimplifyMethod.SimplifyHints, QgsVectorSimplifyMethod.SimplifyHint])¶ Sets the simplification hints of the vector layer managed
-
setThreshold
(self, threshold: float)¶ Sets the simplification threshold of the vector layer managed
-
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
-
simplifyAlgorithm
(self) → QgsVectorSimplifyMethod.SimplifyAlgorithm¶ Gets the local simplification algorithm of the vector layer managed
-
simplifyHints
(self) → QgsVectorSimplifyMethod.SimplifyHints¶ Gets the simplification hints of the vector layer managed
-
staticMetaObject
= <PyQt5.QtCore.QMetaObject object>¶
-
threshold
(self) → float¶ Gets the simplification threshold of the vector layer managed
-
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
-