Class: QgsAbstractGeometrySimplifier¶
- class qgis.core.QgsAbstractGeometrySimplifier¶
Bases:
sip.wrapper
Abstract base class for simplify geometries using a specific algorithm
Methods
Returns whether the device-envelope can be replaced by its BBOX when is applied the specified tolerance
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
envelope (QgsRectangle) –
mapToPixelTol (float = 1) –
- Return type
bool
- simplify(self, geometry: QgsGeometry) QgsGeometry ¶
Returns a simplified version the specified geometry
simplify(self, geometry:
QgsAbstractGeometry
) -> QgsAbstractGeometry Returns a simplified version the specifiedgeometry
.Will return
None
if no simplification is to be performed to the geometry.Caller takes ownership of the returned geometry.
New in version 3.18.
- Parameters
geometry (QgsGeometry) –
- Return type