17 #ifndef QGSGEOMETRYSIMPLIFIER_H
18 #define QGSGEOMETRYSIMPLIFIER_H
27 #include "qgis_core.h"
56 static bool isGeneralizableByDeviceBoundingBox(
const QgsRectangle &envelope,
float mapToPixelTol = 1.0f );
58 static bool isGeneralizableByDeviceBoundingBox(
const QVector<QPointF> &points,
float mapToPixelTol = 1.0f );
Abstract base class for simplify geometries using a specific algorithm.
virtual ~QgsAbstractGeometrySimplifier()=default
virtual QgsAbstractGeometry * simplify(const QgsAbstractGeometry *geometry) const =0
Returns a simplified version the specified geometry.
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.
Implementation of GeometrySimplifier using the Douglas-Peucker algorithm.
double mTolerance
Distance tolerance for the simplification.