69 return !( v == *this );
Abstract base class for simplify geometries using a specific algorithm.
Implementation of GeometrySimplifier using the "MapToPixel" algorithm.
@ Distance
The simplification uses the distance between points to remove duplicate points.
@ SimplifyEnvelope
The geometries can be fully simplified by its BoundingBox.
@ SimplifyGeometry
The geometries can be simplified using the current map2pixel context state.
This class contains information about how to simplify geometries fetched from a QgsFeatureIterator.
void setTolerance(double tolerance)
Sets the tolerance of simplification in map units. Represents the maximum distance in map units betwe...
bool operator!=(const QgsSimplifyMethod &v) const
Inequality operator.
double tolerance() const
Gets the tolerance of simplification in map units. Represents the maximum distance in map units betwe...
void setForceLocalOptimization(bool localOptimization)
Sets whether the simplification executes after fetch the geometries from provider,...
double mTolerance
Simplification tolerance, it represents the maximum distance between two coordinates which can be con...
bool mForceLocalOptimization
Simplification executes after fetch the geometries from provider, otherwise it executes,...
MethodType mMethodType
Simplification method.
void setMethodType(MethodType methodType)
Sets the simplification type.
bool operator==(const QgsSimplifyMethod &v) const
Equality operator.
float mThreshold
Simplification threshold.
MethodType methodType() const
Gets the simplification type.
@ OptimizeForRendering
Simplify using the map2pixel data to optimize the rendering of geometries.
@ PreserveTopology
Simplify using the Douglas-Peucker algorithm ensuring that the result is a valid geometry.
static QgsAbstractGeometrySimplifier * createGeometrySimplifier(const QgsSimplifyMethod &simplifyMethod)
Creates a geometry simplifier according to specified method.
Implementation of GeometrySimplifier using the Douglas-Peucker algorithm.
#define QgsDebugError(str)