QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Abstract base class for simplify geometries using a specific algorithm. More...
#include <qgsgeometrysimplifier.h>
Public Member Functions | |
virtual | ~QgsAbstractGeometrySimplifier ()=default |
virtual QgsAbstractGeometry * | simplify (const QgsAbstractGeometry *geometry) const =0 |
Returns a simplified version the specified geometry. More... | |
virtual QgsGeometry | simplify (const QgsGeometry &geometry) const =0 |
Returns a simplified version the specified geometry. More... | |
Static Public Member Functions | |
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 tolerance. More... | |
static bool | isGeneralizableByDeviceBoundingBox (const QVector< QPointF > &points, float mapToPixelTol=1.0f) |
Returns whether the device-geometry can be replaced by its BBOX when is applied the specified tolerance. More... | |
Abstract base class for simplify geometries using a specific algorithm.
Definition at line 34 of file qgsgeometrysimplifier.h.
|
virtualdefault |
|
static |
Returns whether the device-envelope can be replaced by its BBOX when is applied the specified tolerance.
Definition at line 23 of file qgsgeometrysimplifier.cpp.
|
static |
Returns whether the device-geometry can be replaced by its BBOX when is applied the specified tolerance.
Definition at line 28 of file qgsgeometrysimplifier.cpp.
|
pure virtual |
Returns a simplified version the specified geometry.
Will return nullptr
if no simplification is to be performed to the geometry.
Caller takes ownership of the returned geometry.
Implemented in QgsTopologyPreservingSimplifier, and QgsMapToPixelSimplifier.
|
pure virtual |
Returns a simplified version the specified geometry.
Implemented in QgsTopologyPreservingSimplifier, and QgsMapToPixelSimplifier.