Class: QgsAbstractGeometrySimplifier

class qgis.core.QgsAbstractGeometrySimplifier

Bases: sip.wrapper

Abstract base class for simplify geometries using a specific algorithm

Methods

isGeneralizableByDeviceBoundingBox

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

simplify

Returns a simplified version the specified geometry

isGeneralizableByDeviceBoundingBox(envelope: QgsRectangle, mapToPixelTol: float = 1) → bool

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

isGeneralizableByDeviceBoundingBox(points: Iterable[Union[QPointF, QPoint]], mapToPixelTol: float = 1) -> bool Returns whether the device-geometry can be replaced by its BBOX when is applied the specified tolerance

Parameters
Return type

bool

simplify(self, geometry: QgsGeometry)QgsGeometry

Returns a simplified version the specified geometry

Parameters

geometry (QgsGeometry) –

Return type

QgsGeometry