17 #ifndef QGSGEOMETRYSIMPLIFIER_H 18 #define QGSGEOMETRYSIMPLIFIER_H 33 virtual bool simplifyGeometry(
QgsGeometry* geometry )
const = 0;
38 static bool isGeneralizableByDeviceBoundingBox(
const QgsRectangle& envelope,
float mapToPixelTol = 1.0f );
40 static bool isGeneralizableByDeviceBoundingBox(
const QVector<QPointF>& points,
float mapToPixelTol = 1.0f );
67 #endif // QGSGEOMETRYSIMPLIFIER_H Implementation of GeometrySimplifier using the Douglas-Peucker algorithm.
A rectangle specified with double values.
A geometry is the spatial representation of a feature.
virtual bool simplifyGeometry(QgsGeometry *geometry) const =0
Simplifies the specified geometry.
double mTolerance
Distance tolerance for the simplification.
virtual QgsGeometry * simplify(QgsGeometry *geometry) const =0
Returns a simplified version the specified geometry.
Abstract base class for simplify geometries using a specific algorithm.