17#ifndef QGSGEOMETRYSIMPLIFIER_H
18#define QGSGEOMETRYSIMPLIFIER_H
Abstract base class for simplifying geometries using a specific algorithm.
virtual ~QgsAbstractGeometrySimplifier()=default
virtual QgsAbstractGeometry * simplify(const QgsAbstractGeometry *geometry) const =0
Returns a simplified version the specified geometry.
static bool isGeneralizableByDeviceBoundingBox(const QgsRectangle &envelope, float mapToPixelTol=1.0f)
Returns whether the device-envelope can be replaced by its BBOX when is applied the specified toleran...
virtual QgsGeometry simplify(const QgsGeometry &geometry) const =0
Returns a simplified version the specified geometry.
Abstract base class for all geometries.
A geometry is the spatial representation of a feature.
A rectangle specified with double values.
QgsGeometry simplify(const QgsGeometry &geometry) const override
Returns a simplified version the specified geometry.
double mTolerance
Distance tolerance for the simplification.
QgsTopologyPreservingSimplifier(double tolerance)
Constructor for QgsTopologyPreservingSimplifier.