QgsGeometryCheckerUtils class
Contains utilities required for geometry checks.
Contents
- Reference
Public types
- class LayerFeature
- A layer feature combination to uniquely identify and access a feature in a set of layers.
- class LayerFeatures
- Contains a set of layers and feature ids in those layers to pass to a geometry check.
Public static functions
- static auto pointsFuzzyEqual(const QgsPointXY& p1, const QgsPointXY& p2, double tol) -> bool
- Determine whether two points are equal up to the specified tolerance.
- static auto polyLineSize(const QgsAbstractGeometry* geom, int iPart, int iRing, bool* isClosed = nullptr) -> int
- Returns the number of points in a polyline, accounting for duplicate start and end point if the polyline is closed.
Function documentation
static bool QgsGeometryCheckerUtils:: pointsFuzzyEqual(const QgsPointXY& p1,
const QgsPointXY& p2,
double tol)
Determine whether two points are equal up to the specified tolerance.
| Parameters | |
|---|---|
| p1 | The first point |
| p2 | The second point |
| tol | The tolerance |
| Returns | Whether the points are equal |
static int QgsGeometryCheckerUtils:: polyLineSize(const QgsAbstractGeometry* geom,
int iPart,
int iRing,
bool* isClosed = nullptr)
Returns the number of points in a polyline, accounting for duplicate start and end point if the polyline is closed.
| Returns | The number of distinct points of the polyline |
|---|