Subgroup: Vector
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: 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
Visvalingam
-
AntialiasingSimplification
= 2¶
-
Distance
= 0¶
-
FullSimplification
= 3¶
-
GeometrySimplification
= 1¶
-
NoSimplification
= 0¶
-
class
SimplifyAlgorithm
¶ Bases:
int
-
class
SimplifyHint
¶ Bases:
int
-
class
SimplifyHints
¶ Bases:
sip.wrapper
QgsVectorSimplifyMethod.SimplifyHints(Union[QgsVectorSimplifyMethod.SimplifyHints, QgsVectorSimplifyMethod.SimplifyHint]) QgsVectorSimplifyMethod.SimplifyHints(QgsVectorSimplifyMethod.SimplifyHints)
-
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
-
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
-