, mForceLocalOptimization( true )
( "Simplification method type (%1) is not recognised"
).arg( methodType ) );
Implementation of GeometrySimplifier using the Douglas-Peucker algorithm.
construct a default method
Simplify using the map2pixel data to optimize the rendering of geometries.
The geometries can be fully simplified by its BoundingBox.
void setTolerance(double tolerance)
Sets the tolerance of simplification in map units. Represents the maximum distance in map units betwe...
double tolerance() const
Gets the tolerance of simplification in map units. Represents the maximum distance in map units betwe...
Implementation of GeometrySimplifier using the "MapToPixel" algorithm.
Simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
void setForceLocalOptimization(bool localOptimization)
Sets whether the simplification executes after fetch the geometries from provider, otherwise it executes, when supported, in provider before fetch the geometries.
void setMethodType(MethodType methodType)
Sets the simplification type.
MethodType methodType() const
Gets the simplification type.
static QgsAbstractGeometrySimplifier * createGeometrySimplifier(const QgsSimplifyMethod &simplifyMethod)
Creates a geometry simplifier according to specified method.
Simplification tolerance, it represents the maximum distance between two coordinates which can be con...
This class contains information about how to simplify geometries fetched from a QgsFeatureIterator.
Simplify using the Douglas-Peucker algorithm ensuring that the result is a valid geometry.
The geometries can be simplified using the current map2pixel context state.
The simplification uses the distance between points to remove duplicate points.
Abstract base class for simplify geometries using a specific algorithm.