16#ifndef QGSSIMPLIFYMETHOD_H
17#define QGSSIMPLIFYMETHOD_H
46 void setTolerance(
double tolerance );
56 void setForceLocalOptimization(
bool localOptimization );
Abstract base class for simplifying geometries using a specific algorithm.
Contains information about how to simplify geometries fetched from a QgsFeatureIterator.
QgsSimplifyMethod()=default
construct a default method
float threshold() const
Gets the simplification threshold in pixels. Represents the maximum distance in pixels between two co...
void setThreshold(float threshold)
Sets the simplification threshold in pixels. Represents the maximum distance in pixels between two co...
double tolerance() const
Gets the tolerance of simplification in map units. Represents the maximum distance in map units betwe...
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,...
bool forceLocalOptimization() const
Gets whether the simplification executes after fetch the geometries from provider,...
MethodType mMethodType
Simplification method.
void setMethodType(MethodType methodType)
Sets the simplification type.
float mThreshold
Simplification threshold.
MethodType methodType() const
Gets the simplification type.
@ OptimizeForRendering
Simplify using the map2pixel data to optimize the rendering of geometries.
@ NoSimplification
No simplification is applied.
@ PreserveTopology
Simplify using the Douglas-Peucker algorithm ensuring that the result is a valid geometry.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)