Class: QgsTopologyPreservingSimplifier¶
Implementation of GeometrySimplifier using the Douglas-Peucker algorithm
Simplifies a geometry, ensuring that the result is a valid geometry having the same dimension and number of components as the input. The simplification uses a maximum distance difference algorithm similar to the one used in the Douglas-Peucker algorithm.
Class Hierarchy¶
Base classes¶
Abstract base class for simplify geometries using a specific algorithm  | 
- class qgis.core.QgsTopologyPreservingSimplifier[source]¶
 Bases:
QgsAbstractGeometrySimplifier- __init__(tolerance: float)
 Constructor for QgsTopologyPreservingSimplifier. The tolerance parameter is specified in layer units.
- Parameters:
 tolerance (float)
- __init__(a0: QgsTopologyPreservingSimplifier)
 - Parameters: