QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Convenience functions for geometry editing. More...
#include <qgsgeometryeditutils.h>
Static Public Member Functions | |
static int | addPart (QgsAbstractGeometryV2 *geom, QgsAbstractGeometryV2 *part) |
Adds part to multi type geometry (taking ownership) More... | |
static int | addRing (QgsAbstractGeometryV2 *geom, QgsCurveV2 *ring) |
Adds interior ring (taking ownership). More... | |
static QgsAbstractGeometryV2 * | avoidIntersections (const QgsAbstractGeometryV2 &geom, QMap< QgsVectorLayer *, QSet< QgsFeatureId > > ignoreFeatures=(QMap< QgsVectorLayer *, QSet< QgsFeatureId > >())) |
Alters a geometry so that it avoids intersections with features from all open vector layers. More... | |
static bool | deletePart (QgsAbstractGeometryV2 *geom, int partNum) |
Deletes a part from a geometry. More... | |
static bool | deleteRing (QgsAbstractGeometryV2 *geom, int ringNum, int partNum=0) |
Deletes a ring from a geometry. More... | |
Convenience functions for geometry editing.
Definition at line 34 of file qgsgeometryeditutils.h.
|
static |
Adds part to multi type geometry (taking ownership)
Definition at line 103 of file qgsgeometryeditutils.cpp.
|
static |
Adds interior ring (taking ownership).
Definition at line 29 of file qgsgeometryeditutils.cpp.
|
static |
Alters a geometry so that it avoids intersections with features from all open vector layers.
geom | geometry to alter |
ignoreFeatures | map of layer to feature id of features to ignore |
Definition at line 227 of file qgsgeometryeditutils.cpp.
|
static |
Deletes a part from a geometry.
Definition at line 211 of file qgsgeometryeditutils.cpp.
|
static |
Deletes a ring from a geometry.
Definition at line 178 of file qgsgeometryeditutils.cpp.