Subgroup: other

Class: QgsTopologyPreservingSimplifier

class qgis.core.QgsTopologyPreservingSimplifier

Bases: qgis._core.QgsAbstractGeometrySimplifier

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.

Methods

isGeneralizableByDeviceBoundingBox Returns whether the device-envelope can be replaced by its BBOX when is applied the specified tolerance
simplify

Attributes

simplify(self, geometry: QgsGeometry) → QgsGeometry