QgsAbstractGeometrySimplifier class

Abstract base class for simplify geometries using a specific algorithm.

Derived classes

class QgsMapToPixelSimplifier
Implementation of GeometrySimplifier using the "MapToPixel" algorithm.
class QgsTopologyPreservingSimplifier
Implementation of GeometrySimplifier using the Douglas-Peucker algorithm.

Public static functions

static auto isGeneralizableByDeviceBoundingBox(const QgsRectangle& envelope, float mapToPixelTol = 1.0f) -> bool
Returns whether the device-envelope can be replaced by its BBOX when is applied the specified tolerance.
static auto isGeneralizableByDeviceBoundingBox(const QVector<QPointF>& points, float mapToPixelTol = 1.0f) -> bool
Returns whether the device-geometry can be replaced by its BBOX when is applied the specified tolerance.

Public functions

auto simplify(const QgsGeometry& geometry) const -> QgsGeometry pure virtual
Returns a simplified version the specified geometry.