16 #ifndef QGSGEOMETRYEDITUTILS_H
17 #define QGSGEOMETRYEDITUTILS_H
78 const QList<QgsVectorLayer *> &avoidIntersectionsLayers,
79 bool &haveInvalidGeometry,
Abstract base class for all geometries.
Abstract base class for curved geometry type.
Convenience functions for geometry editing.
static std::unique_ptr< QgsAbstractGeometry > avoidIntersections(const QgsAbstractGeometry &geom, const QList< QgsVectorLayer * > &avoidIntersectionsLayers, bool &haveInvalidGeometry, const QHash< QgsVectorLayer *, QSet< QgsFeatureId > > &ignoreFeatures=(QHash< QgsVectorLayer *, QSet< QgsFeatureId > >()))
Alters a geometry so that it avoids intersections with features from all open vector layers.
static bool deletePart(QgsAbstractGeometry *geom, int partNum)
Deletes a part from a geometry.
static QgsGeometry::OperationResult addRing(QgsAbstractGeometry *geometry, std::unique_ptr< QgsCurve > ring)
Add an interior ring to a geometry.
static QgsGeometry::OperationResult addPart(QgsAbstractGeometry *geometry, std::unique_ptr< QgsAbstractGeometry > part)
Add a part to multi type geometry.
static bool deleteRing(QgsAbstractGeometry *geom, int ringNum, int partNum=0)
Deletes a ring from a geometry.
A geometry engine is a low-level representation of a QgsAbstractGeometry object, optimised for use wi...
OperationResult
Success or failure of a geometry operation.
Represents a vector layer which manages a vector based data sets.