QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
53 QgsDebugMsg( QStringLiteral(
"Simplification method type (%1) is not recognised" ).arg(
methodType ) );
69 return !( v == *this );
This class contains information about how to simplify geometries fetched from a QgsFeatureIterator.
MethodType mMethodType
Simplification method.
@ Distance
The simplification uses the distance between points to remove duplicate points.
@ OptimizeForRendering
Simplify using the map2pixel data to optimize the rendering of geometries.
Abstract base class for simplify geometries using a specific algorithm.
float mThreshold
Simplification threshold.
bool operator!=(const QgsSimplifyMethod &v) const
Inequality operator.
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...
@ SimplifyEnvelope
The geometries can be fully simplified by its BoundingBox.
@ SimplifyGeometry
The geometries can be simplified using the current map2pixel context state.
bool mForceLocalOptimization
Simplification executes after fetch the geometries from provider, otherwise it executes,...
void setForceLocalOptimization(bool localOptimization)
Sets whether the simplification executes after fetch the geometries from provider,...
Implementation of GeometrySimplifier using the "MapToPixel" algorithm.
Implementation of GeometrySimplifier using the Douglas-Peucker algorithm.
MethodType methodType() const
Gets the simplification type.
static QgsAbstractGeometrySimplifier * createGeometrySimplifier(const QgsSimplifyMethod &simplifyMethod)
Creates a geometry simplifier according to specified method.
void setMethodType(MethodType methodType)
Sets the simplification type.
@ PreserveTopology
Simplify using the Douglas-Peucker algorithm ensuring that the result is a valid geometry.
bool operator==(const QgsSimplifyMethod &v) const
Equality operator.
double mTolerance
Simplification tolerance, it represents the maximum distance between two coordinates which can be con...